SurrogateSelector.ChainSelector Method (ISurrogateSelector)

 

Adds the specified ISurrogateSelector that can handle a particular object type to the list of surrogates.

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

[SecurityCriticalAttribute]
public virtual void ChainSelector(
	ISurrogateSelector selector
)

Parameters

selector
Type: System.Runtime.Serialization.ISurrogateSelector

The surrogate selector to add.

Exception Condition
ArgumentNullException

The selector parameter is null.

SerializationException

The selector is already on the list of selectors.

SecurityException

The caller does not have the required permission.

The last selector added to the list will be the first one checked.

SecurityPermission

for providing serialization services. Associated enumeration: SecurityPermissionFlag.SerializationFormatter.

.NET Framework
Available since 1.1
Return to top
Show: