IConstructionCallMessage.Activator Property


Gets or sets the activator that activates the remote object.

Namespace:   System.Runtime.Remoting.Activation
Assembly:  mscorlib (in mscorlib.dll)

IActivator Activator {

Property Value

Type: System.Runtime.Remoting.Activation.IActivator

The activator that activates the remote object.

Exception Condition

The immediate caller does not have infrastructure permission.

A chain of activators that are arranged in a hierarchy typically completes the various tasks that are involved in the activation process. If you intend to plug in a custom activator, then you should traverse the activator hierarchy and plug in your activator at the appropriate location. Use the IActivator.NextActivator property on the activator that is returned by the current property to traverse the chain of activators.

If you add your own activator into the message's activator chain on the client side, the activator may be serialized and transported to the server side, if deemed necessary. For this reason, custom activators should be fairly lightweight in terms of serialization requirements.


For operating with infrastructure code. Associated enumeration: SecurityPermissionFlag.Infrastructure

.NET Framework
Available since 1.1
Return to top