System.Runtime.Serialization.SurrogateSelector.AddSurrogate Method

Adds a surrogate to the list of checked surrogates.

Syntax

public virtual void AddSurrogate (Type type, StreamingContext context, ISerializationSurrogate surrogate)

Parameters

type
The Type for which the surrogate is required.
context
The context-specific data.
surrogate
The surrogate to call for this type.

Remarks

Documentation for this section has not yet been entered.

Requirements

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