System.Runtime.Serialization.SurrogateSelector.RemoveSurrogate Method

Removes the surrogate associated with a given type.

Syntax

public virtual void RemoveSurrogate (Type type, StreamingContext context)

Parameters

type
The Type for which to remove the surrogate.
context
The System.Runtime.Serialization.StreamingContext for the current surrogate.

Remarks

This method does not check chained surrogates.

Requirements

Namespace: System.Runtime.Serialization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0