Uređivanje

Dijeli putem


ISurrogateSelector Interface

Definition

Caution

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

Indicates a serialization surrogate selector class.

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

Remarks

Surrogate selectors implement the ISurrogateSelector interface to assist formatters in selecting surrogates to delegate to the serialization or deserialization of other objects.

Methods

ChainSelector(ISurrogateSelector)

Specifies the next ISurrogateSelector for surrogates to examine if the current instance does not have a surrogate for the specified type and assembly in the specified context.

GetNextSelector()

Returns the next surrogate selector in the chain.

GetSurrogate(Type, StreamingContext, ISurrogateSelector)

Finds the surrogate that represents the specified object's type, starting with the specified surrogate selector for the specified serialization context.

Applies to