Context::SetProperty Method (IContextProperty^)
.NET Framework (current version)
This API supports the product infrastructure and is not intended to be used directly from your code.
Sets a specific context property by name.
Assembly: mscorlib (in mscorlib.dll)
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
Available since 1.1
Show: