ContextAttribute.GetPropertiesForNewContext(IConstructionCallMessage) Method

Definition

Adds the current context property to the given message.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 virtual void GetPropertiesForNewContext(System::Runtime::Remoting::Activation::IConstructionCallMessage ^ ctorMsg);
public virtual void GetPropertiesForNewContext (System.Runtime.Remoting.Activation.IConstructionCallMessage ctorMsg);
[System.Security.SecurityCritical]
public virtual void GetPropertiesForNewContext (System.Runtime.Remoting.Activation.IConstructionCallMessage ctorMsg);
abstract member GetPropertiesForNewContext : System.Runtime.Remoting.Activation.IConstructionCallMessage -> unit
override this.GetPropertiesForNewContext : System.Runtime.Remoting.Activation.IConstructionCallMessage -> unit
[<System.Security.SecurityCritical>]
abstract member GetPropertiesForNewContext : System.Runtime.Remoting.Activation.IConstructionCallMessage -> unit
override this.GetPropertiesForNewContext : System.Runtime.Remoting.Activation.IConstructionCallMessage -> unit
Public Overridable Sub GetPropertiesForNewContext (ctorMsg As IConstructionCallMessage)

Parameters

ctorMsg
IConstructionCallMessage

The IConstructionCallMessage to which to add the context property.

Implements

Attributes

Exceptions

The ctorMsg parameter is null.

Remarks

The ContextAttribute class is an implementation of an IContextProperty property. The GetPropertiesForNewContext method adds the property to the given IConstructionCallMessage class so that when the message is received, the new object can be created in the required context environment.

Applies to