SurrogateSelector.RemoveSurrogate(Type, StreamingContext) SurrogateSelector.RemoveSurrogate(Type, StreamingContext) SurrogateSelector.RemoveSurrogate(Type, StreamingContext) Method

Definition

Removes the surrogate associated with a given type.

public:
 virtual void RemoveSurrogate(Type ^ type, System::Runtime::Serialization::StreamingContext context);
public virtual void RemoveSurrogate (Type type, System.Runtime.Serialization.StreamingContext context);
abstract member RemoveSurrogate : Type * System.Runtime.Serialization.StreamingContext -> unit
override this.RemoveSurrogate : Type * System.Runtime.Serialization.StreamingContext -> unit

Parameters

type
Type Type Type

The Type for which to remove the surrogate.

context
StreamingContext StreamingContext StreamingContext

The StreamingContext for the current surrogate.

Exceptions

Remarks

This method does not check chained surrogates.

Applies to