System.MarshallByRefObject.cs

ylbtech-System.MarshallByRefObject.cs

 It allows applications that support remoting of domain boundaries to access objects across applications.

1. Back to top
1、
#region assembly mscorlib, Version = 4.0.0.0, Culture = Neutral, PublicKeyToken = b77a5c561934e089
 // C: \ Program Files (x86) \ Reference Assemblies \ in the Microsoft \ Framework \ .NETFramework \ v4.0 \ mscorlib.dll 
#endregion 

a using System.Runtime.InteropServices;
 a using System.Runtime.Remoting;
 a using System.Security; 

namespace System 
{ 
    // 
    // summary:
     //      allow access across application domain boundaries in applications that support remote objects processed. 
    [The ComVisible ( to true )]
     public  abstract  class MarshalByRefObject 
    { 
        // 
        // Summary:
         //     System.MarshalByRefObject initialize a new instance of the class. 
        protected MarshalByRefObject (); 

        // 
        // Summary:
         //      Create an object that contains all the relevant information required to generate a proxy to communicate with the remote object.
        // 
        // Parameters:
         //    requestedType:
         //      target new System.Runtime.Remoting.ObjRef will reference the System.Type.
        // 
        // Returns:
         //      generate the information necessary for the agent.
        // 
        // anomaly:
         //    T: System.Runtime.Remoting.RemotingException:
         //      This example is not a valid remoting object.
        // 
        //    T: System.Security.SecurityException:
        //      immediate caller does not have infrastructure permission. 
        [SecurityCritical]
         public  Virtual ObjRef CreateObjRef (Type requestedType);
         // 
        // Summary:
         //      retrieve control the lifetime policy for this instance of the current lifetime service object.
        // 
        // Returns:
         //      objects System.Runtime.Remoting.Lifetime.ILease type used to control the lifetime policy for this instance.
        // 
        // anomaly:
         //    T: System.Security.SecurityException:
         //      immediate caller does not have infrastructure permission. 
        [SecurityCritical]
         public  Object GetLifetimeService ();
         // 
        // Summary:
        //      Obtains a lifetime service object to control the lifetime policy for this instance.
        // 
        // Returns:
         //      objects System.Runtime.Remoting.Lifetime.ILease type used to control the lifetime policy for this instance. This is an example of this current lifetime service object (if present); otherwise initialized
         //      new lifetime service object value System.Runtime.Remoting.Lifetime.LifetimeServices.LeaseManagerPollTime attributes.
        // 
        // anomaly:
         //    T: System.Security.SecurityException:
         //      immediate caller does not have infrastructure permission. 
        [SecurityCritical]
         public  Virtual  Object InitializeLifetimeService ();
         // 
        // Summary:
         //      Creates a shallow copy of the current System.MarshalByRefObject object.
        // 
        // Parameters:
         //    cloneIdentity:
         //      If you want to delete the current System.MarshalByRefObject identify the object, was false, which makes the object is assigned a new identity when marshaling across remote border. Value false
         //      usually more appropriate. If true, then the current object's identity System.MarshalByRefObject copy items to its clone, which will be routed to the remote client calls the remote server object.
        // 
        // Returns:
         //      shallow copy of the current System.MarshalByRefObject object. 
        protected MarshalByRefObject MemberwiseClone ( BOOL cloneIdentity); 
    } 
}
2、
2. Return to top
 
3. Back to top
 
4. Top
 
5. Top
 
 
6. Back to top
 
warn Author: ylbtech
Source: http://ylbtech.cnblogs.com/
This article belongs to the author and blog Park total, welcome to reprint, but without the author's consent declared by this section must be retained, and given the original connection in the apparent position of the article page, otherwise reserves the right to pursue legal responsibilities.

Guess you like

Origin www.cnblogs.com/storebook/p/11926841.html