Selects the remoting surrogate that can be used to serialize an object that derives from a MarshalByRefObject.
Assembly: mscorlib (in mscorlib.dll)
Thetype exposes the following members.
|ChainSelector||Adds the specified ISurrogateSelector to the surrogate selector chain.|
|Equals(Object)||Determines whether the specified object is equal to the current object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as the default hash function. (Inherited from Object.)|
|GetNextSelector||Returns the next ISurrogateSelector in the chain of surrogate selectors.|
|GetRootObject||Returns the object at the root of the object graph.|
|GetSurrogate||Returns the appropriate surrogate for the given type in the given context.|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|SetRootObject||Sets the object at the root of the object graph.|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
|UseSoapFormat||Sets up the current surrogate selector to use the SOAP format.|
A surrogate is an object that can handle the serialization requirements of an object. Remoting surrogates handle remoting serialization requirements of objects that derive from MarshalByRefObject. The manages registered surrogates for use by the BinaryFormatter and SoapFormatter.
During serialization for remoting purposes of a MarshalByRefObject, the remoting surrogate creates an ObjRef that contains all the relevant information required to activate and communicate with the remote object. The newly created ObjRef can then be sent to a remote location and used to create a proxy.