System.Runtime.Remoting.WellKnownClientTypeEntry Class

Holds values for an object type registered on the client as a server-activated type (single call or singleton).

See Also: WellKnownClientTypeEntry Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public class WellKnownClientTypeEntry : TypeEntry

Remarks

Server-activated types can be either single call or singleton. If a class is registered as a single call type, a new instance is created each time a call from the client arrives. All calls to a singleton object are handled by one instance of that object, unless that object has been collected.

Any client that knows the URI of a registered server-activated object can obtain a proxy for this object by registering the channel it prefers with System.Runtime.Remoting.Channels.ChannelServices and activating the object by calling new or Activator.GetObject(Type, string). To activate a server-activated object with new, you must first register the server-activated object type on the client using the RemotingConfiguration.RegisterWellKnownClientType(Type, string) method. By calling RemotingConfiguration.RegisterWellKnownClientType(Type, string), 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(Type, string) method to activate a server-activated object, you must supply it with the object's URL as an argument, so no prior registration on the client is necessary.

For a detailed description of server-activated objects and remote object activation, see [<topic://cpconActivation>].

Requirements

Namespace: System.Runtime.Remoting
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0