HostExecutionContextManager.SetHostExecutionContext Method (HostExecutionContext)
Sets the current host execution context to the specified host execution context.
Assembly: mscorlib (in mscorlib.dll)
[SecurityCriticalAttribute] public virtual object SetHostExecutionContext( HostExecutionContext hostExecutionContext )
hostExecutionContext was not acquired through a capture operation.
hostExecutionContext has been the argument to a previousmethod call.
The HostExecutionContext. A HostExecutionContext that has been used as the argument to another method call cannot be passed in as the parameter for this method. Instead, use the HostExecutionContext.CreateCopy method to create a copy of a HostExecutionContext object and then use the copy to set the host execution context.method sets the host execution context for the current
Requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.
Available since 2.0