Export (0) Print
Expand All

ActivatedServiceTypeEntry Class

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

For a list of all members of this type, see ActivatedServiceTypeEntry Members.

System.Object
   System.Runtime.Remoting.TypeEntry
      System.Runtime.Remoting.ActivatedServiceTypeEntry

[Visual Basic]
Public Class ActivatedServiceTypeEntry
   Inherits TypeEntry
[C#]
public class ActivatedServiceTypeEntry : TypeEntry
[C++]
public __gc class ActivatedServiceTypeEntry : public TypeEntry
[JScript]
public class ActivatedServiceTypeEntry extends TypeEntry

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

The current class is used by the RemotingConfiguration.RegisterActivatedServiceType method, which is the server-side counterpart of the RemotingConfiguration.RegisterActivatedClientType method. The RegisterActivatedServiceType 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 RegisterActivatedServiceType method. To obtain a proxy for a new 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 using the RegisterActivatedClientType method. By calling RegisterActivatedClientType 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 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 is necessary. To supply the 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 Activation.

Requirements

Namespace: System.Runtime.Remoting

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Mscorlib (in Mscorlib.dll)

See Also

ActivatedServiceTypeEntry Members | System.Runtime.Remoting Namespace | RegisterActivatedServiceType | Client Activation

Show:
© 2014 Microsoft