mscorlib(4.0.0.0) API with additions
|
Enables access to objects across application domain boundaries in applications that support remoting. More...
Public Member Functions | |
object | GetLifetimeService () |
Retrieves the current lifetime service object that controls the lifetime policy for this instance. More... | |
virtual object | InitializeLifetimeService () |
Obtains a lifetime service object to control the lifetime policy for this instance. More... | |
virtual ObjRef | CreateObjRef (Type requestedType) |
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. More... | |
Protected Member Functions | |
MarshalByRefObject | MemberwiseClone (bool cloneIdentity) |
Creates a shallow copy of the current T:System.MarshalByRefObject object. More... | |
Enables access to objects across application domain boundaries in applications that support remoting.
Definition at line 15 of file MarshalByRefObject.cs.
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
requestedType | The T:System.Type of the object that the new T:System.Runtime.Remoting.ObjRef will reference. |
T:System.Runtime.Remoting.RemotingException | This instance is not a valid remoting object. |
T:System.Security.SecurityException | The immediate caller does not have infrastructure permission. |
Definition at line 142 of file MarshalByRefObject.cs.
object System.MarshalByRefObject.GetLifetimeService | ( | ) |
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
T:System.Security.SecurityException | The immediate caller does not have infrastructure permission. |
Definition at line 122 of file MarshalByRefObject.cs.
|
virtual |
Obtains a lifetime service object to control the lifetime policy for this instance.
T:System.Security.SecurityException | The immediate caller does not have infrastructure permission. |
Reimplemented in System.AppDomain, System.Runtime.Remoting.Lifetime.ClientSponsor, and System.Runtime.Remoting.ObjectHandle.
Definition at line 131 of file MarshalByRefObject.cs.
|
protected |
Creates a shallow copy of the current T:System.MarshalByRefObject object.
cloneIdentity | false to delete the current T:System.MarshalByRefObject object's identity, which will cause the object to be assigned a new identity when it is marshaled across a remoting boundary. A value of false is usually appropriate. true to copy the current T:System.MarshalByRefObject object's identity to its clone, which will cause remoting client calls to be routed to the remote server object. |
Definition at line 64 of file MarshalByRefObject.cs.