System.Runtime.Remoting.Contexts.ContextAttribute.GetPropertiesForNewContext Method

Adds the current context property to the given message.

Syntax

public virtual void GetPropertiesForNewContext (System.Runtime.Remoting.Activation.IConstructionCallMessage ctorMsg)

Parameters

ctorMsg
The System.Runtime.Remoting.Activation.IConstructionCallMessage to which to add the context property.

Remarks

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

Requirements

Namespace: System.Runtime.Remoting.Contexts
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0