CallContext::HostContext Property
.NET Framework (current version)
Gets or sets the host context associated with the current thread.
Assembly: mscorlib (in mscorlib.dll)
public: property Object^ HostContext { [SecurityCriticalAttribute] static Object^ get(); [SecurityCriticalAttribute] static void set(Object^ value); }
| Exception | Condition |
|---|---|
| SecurityException | The immediate caller does not have infrastructure permission. |
SecurityPermission
For operating with infrastructure code. Demand value: SecurityAction::LinkDemand; Permission value: SecurityPermissionFlag::Infrastructure
.NET Framework
Available since 2.0
Available since 2.0
Show: