This documentation is archived and is not being maintained.

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 { get; set; }

Property Value

Type: System.Runtime.Remoting.Activation.IActivator
The activator that activates the remote object.

ExceptionCondition
SecurityException

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.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: