public class WellKnownClientTypeEntry : TypeEntry
|
Any client that knows the URI of a registered well-known object can obtain a proxy for this object by registering the channel it prefers with ChannelServices and activating the object by calling new or Activator.GetObject. To activate a well-known object with new, you must first register the well-known object type on the client using the method RemotingConfiguration.RegisterWellKnownClientType. By calling the RemotingConfiguration.RegisterWellKnownClientType method, you are giving the remoting infrastructure the location of the remote object, which allows the new keyword to create it. If, on the other hand, you use the Activator.GetObject method to activate the well-known object, you must supply it with the object's URL as an argument, so no prior registration on the client end is necessary.
For a detailed description of well-known objects and remote object activation see the conceptual topic at MSDN: activation.
ctor #1 | Overloaded:.ctor(Type type, string objectUrl) Initializes a new instance of the WellKnownClientTypeEntry class with the given Type and object URL. |
ctor #2 | Overloaded:.ctor(string typeName, string assemblyName, string objectUrl) Initializes a new instance of the WellKnownClientTypeEntry class with the given type, assembly name, and object URL. |
ApplicationUrl | Read-write Gets or sets 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. |
ObjectType | Read-only Gets the Type of the well-known client type. |
ObjectUrl | Read-only Gets the URL of the well-known client object. |
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 full type name, assembly name, and object URL of the well-known client 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
objectUrl
public WellKnownClientTypeEntry( |
typeName
assemblyName
objectUrl
public string ApplicationUrl {get; set;}
|
public string AssemblyName {get; set;}
|
public Type ObjectType {get;}
|
public string ObjectUrl {get;}
|
public string TypeName {get; set;}
|
~WellKnownClientTypeEntry(); |
public virtual int GetHashCode(); |
public Type GetType(); |
protected object MemberwiseClone(); |
public override string ToString(); |