Defines an attribute that can be used at the call site to specify the URL where the activation will happen. This class cannot be inherited.
Assembly: mscorlib (in mscorlib.dll)
Thetype exposes the following members.
|Equals||Checks whether the specified object refers to the same URL as the current instance. (Overrides ContextAttribute.Equals(Object).)|
|Freeze||Infrastructure. Called when the context is frozen. (Inherited from ContextAttribute.)|
|GetHashCode||Returns the hash value for the current . (Overrides ContextAttribute.GetHashCode.)|
|GetPropertiesForNewContext||Forces the creation of the context and the server object inside the context at the specified URL. (Overrides ContextAttribute.GetPropertiesForNewContext(IConstructionCallMessage).)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|IsContextOK||Returns a Boolean value that indicates whether the specified Context meets 's requirements. (Overrides ContextAttribute.IsContextOK(Context, IConstructionCallMessage).)|
|IsDefaultAttribute||When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. (Inherited from Attribute.)|
|IsNewContextOK||Infrastructure. Returns a Boolean value indicating whether the context property is compatible with the new context. (Inherited from ContextAttribute.)|
|Match||When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Inherited from Attribute.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
|_Attribute.GetIDsOfNames||Maps a set of names to a corresponding set of dispatch identifiers. (Inherited from Attribute.)|
|_Attribute.GetTypeInfo||Retrieves the type information for an object, which can be used to get the type information for an interface. (Inherited from Attribute.)|
|_Attribute.GetTypeInfoCount||Retrieves the number of type information interfaces that an object provides (either 0 or 1). (Inherited from Attribute.)|
|_Attribute.Invoke||Provides access to properties and methods exposed by an object. (Inherited from Attribute.)|
The following code example illustrates the use of the in setting up client-activated remoting. The example contains three parts: a client, a server, and a remote object that is used by the client and server.
The following code example shows a client:
The following code example shows a server for this client:
The following code example shows the remote object that is used by the client and the server: