SurrogateSelector::ChainSelector Method (ISurrogateSelector^)
.NET Framework (current version)
Adds the specified ISurrogateSelector that can handle a particular object type to the list of surrogates.
Assembly: mscorlib (in mscorlib.dll)
public: [SecurityCriticalAttribute] 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
Available since 1.1
Show: