ContextAttribute.GetPropertiesForNewContext Method (IConstructionCallMessage)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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)

[SecurityCriticalAttribute]
public 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: