System.Runtime.Remoting.RemotingServices.CreateProxyForDomain C# (CSharp) Method

CreateProxyForDomain() static private method

static private CreateProxyForDomain ( int appDomainId, IntPtr defCtxID ) : Object
appDomainId int
defCtxID System.IntPtr
return Object
        internal static Object CreateProxyForDomain(int appDomainId, IntPtr defCtxID)
        {
            AppDomain proxy = null;

            ObjRef objRef = CreateDataForDomain(appDomainId, defCtxID);

            // Unmarshal the objref in the old app domain
            proxy = (AppDomain)Unmarshal(objRef);

            return proxy;
        } // CreateProxyForDomain
RemotingServices