System.Runtime.Remoting.ActivatedServiceTypeEntry Class

Holds values for an object type registered on the service end as one that can be activated on request from a client.

See Also: ActivatedServiceTypeEntry Members


public class ActivatedServiceTypeEntry : TypeEntry


The current class is used by the RemotingConfiguration.RegisterActivatedServiceType(Type) method, which is the server-side counterpart of the RemotingConfiguration.RegisterActivatedClientType(Type, string) method. The RemotingConfiguration.RegisterActivatedServiceType(Type) method is used on the server to allow remote activation by clients of specified object types.

To create 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(Type) method. To obtain a proxy for a new client-activated object, the client must first register a channel with System.Runtime.Remoting.Channels.ChannelServices and then activate the object by calling new or Activator.CreateInstance(Type, System.Reflection.BindingFlags, System.Reflection.Binder, Object[], System.Globalization.CultureInfo).

To activate a client-activated object type with the new keyword, you must first register the object type on the client using the RemotingConfiguration.RegisterActivatedClientType(Type, string) method. By calling RemotingConfiguration.RegisterActivatedClientType(Type, string) 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(Type, System.Reflection.BindingFlags, System.Reflection.Binder, Object[], System.Globalization.CultureInfo) 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 is necessary. To supply the Activator.CreateInstance(Type, System.Reflection.BindingFlags, System.Reflection.Binder, Object[], System.Globalization.CultureInfo) 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 System.Runtime.Remoting.Activation.UrlAttribute class.

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


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