System.Runtime.Remoting.Contexts.IContextAttribute.GetPropertiesForNewContext Method

Returns context properties to the caller in the given message.

Syntax

public void GetPropertiesForNewContext (System.Runtime.Remoting.Activation.IConstructionCallMessage msg)

Parameters

msg
The System.Runtime.Remoting.Activation.IConstructionCallMessage to which to add the context properties.

Remarks

The IContextAttribute.GetPropertiesForNewContext(System.Runtime.Remoting.Activation.IConstructionCallMessage) method can add context properties directly to the System.Runtime.Remoting.Activation.IConstructionCallMessage.ContextProperties property list in the System.Runtime.Remoting.Activation.IConstructionCallMessage interface. The default implementation in the System.Runtime.Remoting.Contexts.ContextAttribute class will add this to the context property list. Context attributes are free to override IContextAttribute.GetPropertiesForNewContext(System.Runtime.Remoting.Activation.IConstructionCallMessage) and can implement their own behavior. For example, they can add to the list a new class that implements the context property.

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