Context::SetProperty Method (IContextProperty^)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Sets a specific context property by name.

Namespace:   System.Runtime.Remoting.Contexts
Assembly:  mscorlib (in mscorlib.dll)

public:
[SecurityCriticalAttribute]
virtual void SetProperty(
	IContextProperty^ prop
)

Parameters

prop
Type: System.Runtime.Remoting.Contexts::IContextProperty^

The actual context property.

Exception Condition
InvalidOperationException

There is an attempt to add properties to the default context.

InvalidOperationException

The context is frozen.

ArgumentNullException

The property or the property name is null.

Adding properties to the default context is not allowed.

.NET Framework
Available since 1.1
Return to top
Show: