Dela via


IVsUIContextManager.SetUIContextState(Guid, Boolean) Method

Definition

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

uiContext
Guid

The Guid identifying the UI context to activate/deactivate.

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.

Applies to