ISerializationSurrogate Schnittstelle
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Achtung
Formatter-based serialization is obsolete and should not be used.
Implementiert eine Serialisierungsauswahl, mit der ein Objekt Serialisierung und Deserialisierung einer anderen durchführen kann.
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
- Attribute
Methoden
| Name | Beschreibung |
|---|---|
| GetObjectData(Object, SerializationInfo, StreamingContext) |
Veraltet.
Füllt die bereitgestellten SerializationInfo Daten auf, die zum Serialisieren des Objekts erforderlich sind. |
| SetObjectData(Object, SerializationInfo, StreamingContext, ISurrogateSelector) |
Veraltet.
Füllt das Objekt mit den Informationen in der SerializationInfo. |