ContextAttribute::GetPropertiesForNewContext Method (IConstructionCallMessage^)
.NET Framework (current version)
This API supports the product infrastructure and is not intended to be used directly from your code.
Adds the current context property to the given message.
Assembly: mscorlib (in mscorlib.dll)
public: [SecurityCriticalAttribute] virtual void GetPropertiesForNewContext( IConstructionCallMessage^ ctorMsg )
Parameters
- ctorMsg
-
Type:
System.Runtime.Remoting.Activation::IConstructionCallMessage^
The IConstructionCallMessage to which to add the context property.
| Exception | Condition |
|---|---|
| ArgumentNullException | The ctorMsg parameter is null. |
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.
.NET Framework
Available since 1.1
Available since 1.1
Show: