CallContext::HostContext Property

 

Gets or sets the host context associated with the current thread.

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

public:
property Object^ HostContext {
	[SecurityCriticalAttribute]
	static Object^ get();
	[SecurityCriticalAttribute]
	static void set(Object^ value);
}

Property Value

Type: System::Object^

The host context associated with the current thread.

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
Return to top
Show: