System.Runtime.Remoting.ActivatedServiceTypeEntry Class

Assembly: Mscorlib.dll
Namespace: System.Runtime.Remoting
Summary
Holds values for an object type registered on the service end as one that can be activated on request from a client.
C# Syntax:
public class ActivatedServiceTypeEntry : TypeEntry
Remarks
The current class is used by the RemotingConfiguration.RegisterActivatedServiceType method which is the server side counterpart of RemotingConfiguration.RegisterActivatedClientType method. The RemotingConfiguration.RegisterActivatedServiceType method is used on the server to allow remote activation by clients of specified object types.

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.

See also:
System.Runtime.Remoting Namespace | RemotingConfiguration.RegisterActivatedServiceType | MSDN: clientactivation

System.Runtime.Remoting.ActivatedServiceTypeEntry Member List:

Public Constructors
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.
Public Properties
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.
Public Methods
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.
Protected Methods
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:


System.Runtime.Remoting.ActivatedServiceTypeEntry Member Details

Overloaded ctor #1
Summary
Initializes a new instance of the ActivatedServiceTypeEntry class with the given Type.
C# Syntax:
public ActivatedServiceTypeEntry(
   Type type
);
Parameters:

type

The Type of the client activated service type.

Return to top


Overloaded ctor #2
Summary
Initializes a new instance of the ActivatedServiceTypeEntry class with the given type name and application URL.
C# Syntax:
public ActivatedServiceTypeEntry(
   string typeName,
   string assemblyName
);
Parameters:

typeName

The type name of the client activated service type.

assemblyName

The assembly name of the client activated service type.

Return to top


Property: AssemblyName (read-write)
Inherited
See base class member description: System.Runtime.Remoting.TypeEntry.AssemblyName

Summary
Gets the assembly name of the object type configured to be a remote activated type.
C# Syntax:
public string AssemblyName {get; set;}

Return to top


Property: ContextAttributes (read-write)
Summary
Gets or sets the context attributes for the client activated service type.
C# Syntax:
public IContextAttribute[] ContextAttributes {get; set;}
Remarks
Context attributes provide context properties which when added to a context can enforce policies such as synchronization and transactions.

Note At the moment this indexer is not implemented, and operations on it will not produce any results.
See also:
Context | ContextAttribute | ContextProperty | IContextAttribute

Return to top


Property: ObjectType (read-only)
Summary
Gets the Type of the client activated service type.
C# Syntax:
public Type ObjectType {get;}

Return to top


Property: TypeName (read-write)
Inherited
See base class member description: System.Runtime.Remoting.TypeEntry.TypeName

Summary
Gets the full type name of the object type configured to be a remote activated type.
C# Syntax:
public string TypeName {get; set;}

Return to top


Method: Equals(
   object obj
)
Inherited
See base class member description: System.Object.Equals
C# Syntax:
public virtual bool Equals(
   object obj
);

For more information on members inherited from System.Object click on the link above.

Return to top


Method: Finalize()
Inherited
See base class member description: System.Object.Finalize
C# Syntax:
~ActivatedServiceTypeEntry();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: GetHashCode()
Inherited
See base class member description: System.Object.GetHashCode
C# Syntax:
public virtual int GetHashCode();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: GetType()
Inherited
See base class member description: System.Object.GetType
C# Syntax:
public Type GetType();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: MemberwiseClone()
Inherited
See base class member description: System.Object.MemberwiseClone
C# Syntax:
protected object MemberwiseClone();

For more information on members inherited from System.Object click on the link above.

Return to top


Overridden Method: ToString()
Summary
Returns the type and assembly name of the client activated service type as a String.
C# Syntax:
public override string ToString();
Return Value:
The type and assembly name of the client activated service type as a String.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.