public class ActivatedClientTypeEntry : TypeEntry
|
To activate a client activated object type with the new keyword, you must first register the object type on the client end using the method RemotingConfiguration.RegisterActivatedClientType. By calling the RemotingConfiguration.RegisterActivatedClientType method you are giving the Remoting infrastructure the location of the remote application where new attempts to create it. If, on the other hand, you use the Activator.CreateInstance method to create a new instance of the client activated object, you must supply the remote application's URL as an parameter, so no prior registration on the client end is necessary. To supply the Activator.CreateInstance method with the URL of the server on which you want to create the object, you must encapsulate the URL in an instance of the UrlAttribute class.
For a detailed description of client activated objects and remote object activation see the conceptual topic at MSDN: activation.
ctor #1 | Overloaded:.ctor(Type type, string appUrl) Initializes a new instance of the ActivatedClientTypeEntry class with the given Type and application URL. |
ctor #2 | Overloaded:.ctor(string typeName, string assemblyName, string appUrl) Initializes a new instance of the ActivatedClientTypeEntry class with the given type name, assembly name, and application URL. |
ApplicationUrl | Read-only Gets the URL of the application to activate the type in. |
AssemblyName (inherited from System.Runtime.Remoting.TypeEntry) |
Read-write See base class member description: System.Runtime.Remoting.TypeEntry.AssemblyName Gets the assembly name of the object type configured to be a remote activated type. |
ContextAttributes | Read-write Gets or sets the context attributes for the client activated type. |
ObjectType | Read-only Gets the Type of the client activated type. |
TypeName (inherited from System.Runtime.Remoting.TypeEntry) |
Read-write See base class member description: System.Runtime.Remoting.TypeEntry.TypeName Gets the full type name of the object type configured to be a remote activated type. |
Equals (inherited from System.Object) |
See base class member description: System.Object.Equals Derived from System.Object, the primary base class for all objects. |
GetHashCode (inherited from System.Object) |
See base class member description: System.Object.GetHashCode Derived from System.Object, the primary base class for all objects. |
GetType (inherited from System.Object) |
See base class member description: System.Object.GetType Derived from System.Object, the primary base class for all objects. |
ToString | Overridden: Returns the type name, assembly name, and application URL of the client activated type as a String. |
Finalize (inherited from System.Object) |
See base class member description: System.Object.Finalize Derived from System.Object, the primary base class for all objects. |
MemberwiseClone (inherited from System.Object) |
See base class member description: System.Object.MemberwiseClone Derived from System.Object, the primary base class for all objects. |
Hierarchy:
type
appUrl
typeName
assemblyName
appUrl
public string ApplicationUrl {get;}
|
public string AssemblyName {get; set;}
|
public IContextAttribute[] ContextAttributes {get; set;}
|
public Type ObjectType {get;}
|
public string TypeName {get; set;}
|
~ActivatedClientTypeEntry(); |
public virtual int GetHashCode(); |
public Type GetType(); |
protected object MemberwiseClone(); |
public override string ToString(); |