CallContext.HostContext Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the host context associated with the current thread.
public:
static property System::Object ^ HostContext { System::Object ^ get(); void set(System::Object ^ value); };
public static object HostContext { get; set; }
public static object HostContext { [System.Security.SecurityCritical] get; [System.Security.SecurityCritical] set; }
static member HostContext : obj with get, set
[<get: System.Security.SecurityCritical>]
[<set: System.Security.SecurityCritical>]
static member HostContext : obj with get, set
Public Shared Property HostContext As Object
Property Value
The host context associated with the current thread.
- Attributes
Exceptions
The immediate caller does not have infrastructure permission.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.