IVsUIContextManager.SetUIContextState(Guid, Boolean) Method
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.
Sets the given UI context to the state given in isActive
.
public void SetUIContextState (in Guid uiContext, bool isActive);
abstract member SetUIContextState : Guid * bool -> unit
Public Sub SetUIContextState (uiContext As Guid, isActive As Boolean)
Parameters
- isActive
- Boolean
A boolean value indicating if the UI context specified in uiContext
should be considered active or not.
Remarks
This method must be called from the UI thread or it will fail with a COMException whose HRESULT will be RPC_E_WRONG_THREAD.