SurrogateSelector.RemoveSurrogate Method (Type, StreamingContext)

 

Removes the surrogate associated with a given type.

Namespace:   System.Runtime.Serialization
Assembly:  mscorlib (in mscorlib.dll)

public virtual void RemoveSurrogate(
	Type type,
	StreamingContext context
)

Parameters

type
Type: System.Type

The Type for which to remove the surrogate.

context
Type: System.Runtime.Serialization.StreamingContext

The StreamingContext for the current surrogate.

Exception Condition
ArgumentNullException

The type parameter is null.

This method does not check chained surrogates.

.NET Framework
Available since 1.1
Return to top
Show: