Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ContextAttribute::GetPropertiesForNewContext Method (IConstructionCallMessage^)

 

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.

Namespace:   System.Runtime.Remoting.Contexts
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
Return to top
Show:
© 2017 Microsoft