PreserializedResourceWriter.AddBinaryFormattedResource 方法      
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
BinaryFormatter serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for more information.
添加指定类型的资源(由字节数组表示),读取资源时将传递给 BinaryFormatter 该资源。
public void AddBinaryFormattedResource(string name, byte[] value, string? typeName = default);
	[System.Obsolete("BinaryFormatter serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for more information.", DiagnosticId="SYSLIB0011", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public void AddBinaryFormattedResource(string name, byte[] value, string? typeName = default);
	public void AddBinaryFormattedResource(string name, byte[] value, string typeName = default);
	member this.AddBinaryFormattedResource : string * byte[] * string -> unit
	[<System.Obsolete("BinaryFormatter serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for more information.", DiagnosticId="SYSLIB0011", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.AddBinaryFormattedResource : string * byte[] * string -> unit
	Public Sub AddBinaryFormattedResource (name As String, value As Byte(), Optional typeName As String = Nothing)
	参数
- name
 - String
 
资源名称。
- value
 - Byte[]
 
包含资源值(采用 BinaryFormatter 所理解的 Byte[] 形式)的字节数组。
- typeName
 - String
 
资源的可选程序集限定类型名称。 默认值是 null。
- 属性
 
例外
              name 或 value 为 null。