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!

RemotingSurrogateSelector.GetSurrogate

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

[Visual Basic]
Overridable Public Function GetSurrogate( _
   ByVal type As Type, _
   ByVal context As StreamingContext, _
   ByRef ssout As ISurrogateSelector _
) As ISerializationSurrogate
[C#]
public virtual ISerializationSurrogate GetSurrogate(
   Type type,
   StreamingContext context,
   ref ISurrogateSelector ssout
);
[C++]
public: virtual ISerializationSurrogate* GetSurrogate(
   Type* type,
   StreamingContext context,
   ISurrogateSelector** ssout
);
[JScript]
public function GetSurrogate(
   type : Type,
   context : StreamingContext,
   ssout : ISurrogateSelector
) : ISerializationSurrogate;

Parameters

type
The Type for which we need a surrogate.
context
The source or destination context for serialization.
ssout
TBD.

Return Value

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

See Also

RemotingSurrogateSelector Class | RemotingSurrogateSelector Members | System.Runtime.Remoting Namespace