แก้ไข

แชร์ผ่าน


IConstructionCallMessage.Activator Property

Definition

Gets or sets the activator that activates the remote object.

public:
 property System::Runtime::Remoting::Activation::IActivator ^ Activator { System::Runtime::Remoting::Activation::IActivator ^ get(); void set(System::Runtime::Remoting::Activation::IActivator ^ value); };
public System.Runtime.Remoting.Activation.IActivator Activator { get; set; }
public System.Runtime.Remoting.Activation.IActivator Activator { [System.Security.SecurityCritical] get; [System.Security.SecurityCritical] set; }
member this.Activator : System.Runtime.Remoting.Activation.IActivator with get, set
[<get: System.Security.SecurityCritical>]
[<set: System.Security.SecurityCritical>]
member this.Activator : System.Runtime.Remoting.Activation.IActivator with get, set
Public Property Activator As IActivator

Property Value

The activator that activates the remote object.

Attributes

Exceptions

The immediate caller does not have infrastructure permission.

Remarks

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.

Applies to