ISerializationSurrogate Interfész

Definíció

Figyelemfelhívás

Formatter-based serialization is obsolete and should not be used.

Olyan szerializálási helyettesítő választót implementál, amely lehetővé teszi, hogy az egyik objektum szerializálja és deszerializálja a másikat.

public interface class ISerializationSurrogate
[System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public interface ISerializationSurrogate
public interface ISerializationSurrogate
[System.Runtime.InteropServices.ComVisible(true)]
public interface ISerializationSurrogate
[<System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type ISerializationSurrogate = interface
type ISerializationSurrogate = interface
[<System.Runtime.InteropServices.ComVisible(true)>]
type ISerializationSurrogate = interface
Public Interface ISerializationSurrogate
Attribútumok

Metódusok

Name Description
GetObjectData(Object, SerializationInfo, StreamingContext)
Elavult.

Feltölti a megadott SerializationInfo adatokat az objektum szerializálásához.

SetObjectData(Object, SerializationInfo, StreamingContext, ISurrogateSelector)
Elavult.

Kitölti az objektumot a SerializationInfo.

A következőre érvényes: