Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
ISerializationSurrogate Interface
Definition
- Namespace:
- System.Runtime.Serialization
- Assemblies:
- netstandard.dll, System.Runtime.Serialization.Formatters.dll
- Assembly:
- System.Runtime.Serialization.Formatters.dll
- Assembly:
- mscorlib.dll
- Assembly:
- netstandard.dll
- Package:
- System.Runtime.Serialization.Formatters v11.0.0-preview.5.26302.115
- Source:
- ISerializationSurrogate.cs
- Source:
- ISerializationSurrogate.cs
- Source:
- ISerializationSurrogate.cs
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
Formatter-based serialization is obsolete and should not be used.
Implements a serialization surrogate selector that allows one object to perform serialization and deserialization of another.
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
- Attributes
Methods
| Name | Description |
|---|---|
| GetObjectData(Object, SerializationInfo, StreamingContext) |
Populates the provided SerializationInfo with the data needed to serialize the object. |
| SetObjectData(Object, SerializationInfo, StreamingContext, ISurrogateSelector) |
Populates the object using the information in the SerializationInfo. |
Applies to
Feedback
Was this page helpful?
