Surrogate Selector Class
Selects the remoting surrogate that can be used to serialize an object that derives from a MarshalByRefObject.
public ref class RemotingSurrogateSelector : System::Runtime::Serialization::ISurrogateSelector
[System.Runtime.InteropServices.ComVisible(true)] [System.Security.SecurityCritical] public class RemotingSurrogateSelector : System.Runtime.Serialization.ISurrogateSelector
type RemotingSurrogateSelector = class interface ISurrogateSelector
Public Class RemotingSurrogateSelector Implements ISurrogateSelector
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 RemotingSurrogateSelector 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.
This class makes a link demand and an inheritance demand at the class level. A SecurityException is thrown when either the immediate caller or the derived class does not have infrastructure permission. For details about security demands, see Link Demands and Inheritance Demands.
Initializes a new instance of the RemotingSurrogateSelector class.
Adds the specified ISurrogateSelector to the surrogate selector chain.
Determines whether the specified object is equal to the current object.(Inherited from Object)
Serves as the default hash function.(Inherited from Object)
Returns the next ISurrogateSelector in the chain of surrogate selectors.
Returns the object at the root of the object graph.
|GetSurrogate(Type, StreamingContext, ISurrogateSelector)||
Returns the appropriate surrogate for the given type in the given context.
Gets the Type of the current instance.(Inherited from Object)
Creates a shallow copy of the current Object.(Inherited from Object)
Sets the object at the root of the object graph.
Returns a string that represents the current object.(Inherited from Object)
Sets up the current surrogate selector to use the SOAP format.