public class ActivatedServiceTypeEntry : TypeEntry
|
To create an instance of a client activated object on the server, you must know its Type, and it must be registered on the server end by using the RemotingConfiguration.RegisterActivatedServiceType method. To obtain a proxy for a new instance of the client activated object the client must first register a channel with ChannelServices and then activate the object by calling new or Activator.CreateInstance.
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 a 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) Initializes a new instance of the ActivatedServiceTypeEntry class with the given Type. |
ctor #2 | Overloaded:.ctor(string typeName, string assemblyName) Initializes a new instance of the ActivatedServiceTypeEntry class with the given type name and application URL. |
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 service type. |
ObjectType | Read-only Gets the Type of the client activated service 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 and assembly name of the client activated service 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:
public ActivatedServiceTypeEntry( |
type
typeName
assemblyName
public string AssemblyName {get; set;}
|
public IContextAttribute[] ContextAttributes {get; set;}
|
public Type ObjectType {get;}
|
public string TypeName {get; set;}
|
~ActivatedServiceTypeEntry(); |
public virtual int GetHashCode(); |
public Type GetType(); |
protected object MemberwiseClone(); |
public override string ToString(); |