mscorlib(4.0.0.0) API with additions
System.MarshalByRefObject Class Reference

Enables access to objects across application domain boundaries in applications that support remoting. More...

Inheritance diagram for System.MarshalByRefObject:
[legend]

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...
 

Detailed Description

Enables access to objects across application domain boundaries in applications that support remoting.

Definition at line 15 of file MarshalByRefObject.cs.

Member Function Documentation

◆ CreateObjRef()

virtual ObjRef System.MarshalByRefObject.CreateObjRef ( Type  requestedType)
virtual

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

Parameters
requestedTypeThe T:System.Type of the object that the new T:System.Runtime.Remoting.ObjRef will reference.
Returns
Information required to generate a proxy.
Exceptions
T:System.Runtime.Remoting.RemotingExceptionThis instance is not a valid remoting object.
T:System.Security.SecurityExceptionThe immediate caller does not have infrastructure permission.

Definition at line 142 of file MarshalByRefObject.cs.

◆ GetLifetimeService()

object System.MarshalByRefObject.GetLifetimeService ( )

Retrieves the current lifetime service object that controls the lifetime policy for this instance.

Returns
An object of type T:System.Runtime.Remoting.Lifetime.ILease used to control the lifetime policy for this instance.
Exceptions
T:System.Security.SecurityExceptionThe immediate caller does not have infrastructure permission.

Definition at line 122 of file MarshalByRefObject.cs.

◆ InitializeLifetimeService()

virtual object System.MarshalByRefObject.InitializeLifetimeService ( )
virtual

Obtains a lifetime service object to control the lifetime policy for this instance.

Returns
An object of type T:System.Runtime.Remoting.Lifetime.ILease used to control the lifetime policy for this instance. This is the current lifetime service object for this instance if one exists; otherwise, a new lifetime service object initialized to the value of the P:System.Runtime.Remoting.Lifetime.LifetimeServices.LeaseManagerPollTime property.
Exceptions
T:System.Security.SecurityExceptionThe 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.

◆ MemberwiseClone()

MarshalByRefObject System.MarshalByRefObject.MemberwiseClone ( bool  cloneIdentity)
protected

Creates a shallow copy of the current T:System.MarshalByRefObject object.

Parameters
cloneIdentityfalse 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.
Returns
A shallow copy of the current T:System.MarshalByRefObject object.

Definition at line 64 of file MarshalByRefObject.cs.


The documentation for this class was generated from the following file: