Share via


SettingRule.UIContext(Guid, Boolean) Method

Definition

Creates a SettingRule that is satisfied when the Visual Studio UI Context uiContextId value is value in the IDE.

public static Microsoft.VisualStudio.Extensibility.Settings.SettingRule UIContext (Guid uiContextId, bool value);
static member UIContext : Guid * bool -> Microsoft.VisualStudio.Extensibility.Settings.SettingRule
Public Shared Function UIContext (uiContextId As Guid, value As Boolean) As SettingRule

Parameters

uiContextId
Guid

The identifier of the Visual Studio UI Context.

value
Boolean

The value of the UI Context that satisfies this rule.

Returns

A SettingRule instance.

Applies to