11 [AttributeUsage(
AttributeTargets.Class, AllowMultiple =
false, Inherited =
true)]
22 if (serverType ==
null)
26 RuntimeType runtimeType = serverType as RuntimeType;
27 if (runtimeType ==
null)
39 return CreateInstanceInternal(runtimeType);
44 return ActivationServices.CreateInstance(serverType);
56 RemotingProxy remotingProxy =
new RemotingProxy(serverType);
57 if (serverContext !=
null)
61 if (objRef !=
null && objRef.GetServerIdentity().
IsAllocated)
63 remotingProxy.SetSrvInfo(objRef.GetServerIdentity(), objRef.GetDomainID());
65 remotingProxy.Initialized =
true;
Identifies a context attribute.
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
Describes a set of security permissions applied to code. This class cannot be inherited.
Represents the construction call request of an object.
Represents the base class for custom attributes.
Provides base functionality for proxies.
virtual MarshalByRefObject CreateInstance(Type serverType)
Creates either an uninitialized T:System.MarshalByRefObject or a transparent proxy,...
Stores all relevant information required to generate a proxy in order to communicate with a remote ob...
Defines an environment for the objects that are resident inside it and for which a policy can be enfo...
bool IsAllocated
Gets a value indicating whether the handle is allocated.
SecurityAction
Specifies the security actions that can be performed using declarative security.
Provides information about, and means to manipulate, the current environment and platform....
void GetPropertiesForNewContext(IConstructionCallMessage msg)
Gets properties for a new context.
Indicates that an object type requires a custom proxy.
Represents type declarations: class types, interface types, array types, value types,...
static void SetStubData(RealProxy rp, object stubData)
Sets the stub data for the specified proxy.
bool IsContextful
Gets a value indicating whether the T:System.Type can be hosted in a context.
AttributeTargets
Specifies the application elements on which it is valid to apply an attribute.
The exception that is thrown when one of the arguments provided to a method is not valid.
virtual RealProxy CreateProxy(ObjRef objRef, Type serverType, object serverObject, Context serverContext)
Creates an instance of a remoting proxy for a remote object described by the specified T:System....
bool IsMarshalByRef
Gets a value indicating whether the T:System.Type is marshaled by reference.
bool IsAbstract
Gets a value indicating whether the T:System.Type is abstract and must be overridden.
SecurityPermissionFlag
Specifies access flags for the security permission object.
bool IsContextOK(Context ctx, IConstructionCallMessage msg)
Checks the specified context.
The exception that is thrown when something has gone wrong during remoting.
Enables access to objects across application domain boundaries in applications that support remoting.