Finds the surrogate, if any, that will act for the specified object's type, for the specified serialization context, starting with the specified surrogate selector.
[Visual Basic] Function GetSurrogate( _ ByVal type As Type, _ ByVal context As StreamingContext, _ ByRef selector As ISurrogateSelector _ ) As ISerializationSurrogate [C#] ISerializationSurrogate GetSurrogate( Type type, StreamingContext context, ref ISurrogateSelector selector ); [C++] ISerializationSurrogate* GetSurrogate( Type* type, StreamingContext context, ISurrogateSelector** selector ) = 0; [JScript] function GetSurrogate( type : Type, context : StreamingContext, selector : ISurrogateSelector ) : ISerializationSurrogate;
The appropriate surrogate for the given type in the given context.
ISurrogateSelector Interface | ISurrogateSelector Members | System.Runtime.Serialization Namespace