Context.SetProperty(IContextProperty) Method

Definition

Sets a specific context property by name.

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

public virtual void SetProperty (System.Runtime.Remoting.Contexts.IContextProperty prop);
[System.Security.SecurityCritical]
public virtual void SetProperty (System.Runtime.Remoting.Contexts.IContextProperty prop);

Parameters

prop
IContextProperty

The actual context property.

Attributes

Exceptions

The context is frozen.

The property or the property name is null.

Remarks

Adding properties to the default context is not allowed.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1