ContextAttribute.GetPropertiesForNewContext Method (IConstructionCallMessage)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on 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)

public virtual void GetPropertiesForNewContext(
	IConstructionCallMessage ctorMsg


Type: System.Runtime.Remoting.Activation.IConstructionCallMessage

The IConstructionCallMessage to which to add the context property.

Exception Condition

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