IContextAttribute.GetPropertiesForNewContext(IConstructionCallMessage) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns context properties to the caller in the given message.
This API supports the product infrastructure and is not intended to be used directly from your code.
public:
void GetPropertiesForNewContext(System::Runtime::Remoting::Activation::IConstructionCallMessage ^ msg);
public void GetPropertiesForNewContext (System.Runtime.Remoting.Activation.IConstructionCallMessage msg);
[System.Security.SecurityCritical]
public void GetPropertiesForNewContext (System.Runtime.Remoting.Activation.IConstructionCallMessage msg);
abstract member GetPropertiesForNewContext : System.Runtime.Remoting.Activation.IConstructionCallMessage -> unit
[<System.Security.SecurityCritical>]
abstract member GetPropertiesForNewContext : System.Runtime.Remoting.Activation.IConstructionCallMessage -> unit
Public Sub GetPropertiesForNewContext (msg As IConstructionCallMessage)
Parameters
The IConstructionCallMessage to which to add the context properties.
- Attributes
Remarks
The GetPropertiesForNewContext method can add context properties directly to the ContextProperties property list in the IConstructionCallMessage interface. The default implementation in the ContextAttribute class will add this to the context property list. Context attributes are free to override GetPropertiesForNewContext and can implement their own behavior. For example, they can add to the list a new class that implements the context property.