NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ISurrogateSelector.GetSurrogate

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;

Parameters

type
The type of object (class) for which we seek a surrogate.
context
The streaming context for this serialization.
selector
The surrogate selector with which to start the search.

Return Value

The appropriate surrogate for the given type in the given context.

See Also

ISurrogateSelector Interface | ISurrogateSelector Members | System.Runtime.Serialization Namespace