PreserializedResourceWriter.AddBinaryFormattedResource Methode

Definition

Achtung

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

Fügt eine Ressource des angegebenen Typs hinzu, dargestellt durch ein Bytearray, das beim Lesen der Ressource übergeben BinaryFormatter wird.

[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);
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}")>]
member this.AddBinaryFormattedResource : string * byte[] * string -> unit
member this.AddBinaryFormattedResource : string * byte[] * string -> unit
Public Sub AddBinaryFormattedResource (name As String, value As Byte(), Optional typeName As String = Nothing)

Parameter

name
String

Der Ressourcenname.

value
Byte[]

Ein Bytearray, das den Wert der Ressource in Byte[] Form enthält, die von BinaryFormatter.

typeName
String

Der optionale assemblyqualifizierte Typname der Ressource. Der Standardwert ist null.

Attribute

Ausnahmen

name oder value ist null.

Gilt für: