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!

SurrogateSelector.RemoveSurrogate

Removes the surrogate associated with a given type. Does not check chained surrogates.

[Visual Basic]
Overridable Public Sub RemoveSurrogate( _
   ByVal type As Type, _
   ByVal context As StreamingContext _
)
[C#]
public virtual void RemoveSurrogate(
   Type type,
   StreamingContext context
);
[C++]
public: virtual void RemoveSurrogate(
   Type* type,
   StreamingContext context
);
[JScript]
public function RemoveSurrogate(
   type : Type,
   context : StreamingContext
);

Parameters

type
The type for which we need to remove the surrogate.
context
[To be supplied.]

Exceptions

Exception Type Condition
ArgumentNullException The type parameter is a null reference (in Visual Basic Nothing).

See Also

SurrogateSelector Class | SurrogateSelector Members | System.Runtime.Serialization Namespace