Compartir a través de


PreserializedResourceWriter.AddBinaryFormattedResource Método

Definición

Precaución

BinaryFormatter serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for more information.

Agrega un recurso del tipo especificado, representado por una matriz de bytes, que se pasará a BinaryFormatter al leer el recurso.

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)

Parámetros

name
String

Nombre del recurso.

value
Byte[]

Matriz de bytes que contiene el valor del recurso en la forma Byte[] que reconoce BinaryFormatter.

typeName
String

Nombre de tipo calificado con el ensamblado opcional del recurso. El valor predeterminado es null.

Atributos

Excepciones

name o value es null.

Se aplica a