Share via


SettingRule Class

Definition

Configuration of a VisualStudio.Extensibility setting rule.

[Newtonsoft.Json.JsonConverter(typeof(Microsoft.VisualStudio.Extensibility.Settings.SettingRule+SettingRuleConverter))]
public abstract class SettingRule : IEquatable<Microsoft.VisualStudio.Extensibility.Settings.SettingRule>
[<Newtonsoft.Json.JsonConverter(typeof(Microsoft.VisualStudio.Extensibility.Settings.SettingRule+SettingRuleConverter))>]
type SettingRule = class
    interface IEquatable<SettingRule>
Public MustInherit Class SettingRule
Implements IEquatable(Of SettingRule)
Inheritance
SettingRule
Attributes
Newtonsoft.Json.JsonConverterAttribute
Implements

Methods

And(SettingRule[])

Creates a SettingRule rule that is true when all rules are true.

EnvironmentVariableEqual(String, String)

Creates a SettingRule that is satisfied when an environment variable has the provided value.

EnvironmentVariableNotEqual(String, String)

Creates a SettingRule that is satisfied when an environment variable doesn't have the provided value.

Equal<T>(SimpleSetting<T>, T)

Creates a SettingRule that is satisfied when setting's value is equal to value.

Equals(Object)

Determines whether the specified object is equal to the current object.

Equals(SettingRule)

Indicates whether the current object is equal to another object of the same type.

FeatureFlag(String, Boolean)

Creates a SettingRule that is satisfied when the Visual Studio feature flag featureFlagId value is value.

GetHashCode()

Serves as the default hash function.

NotEqual<T>(SimpleSetting<T>, T)

Creates a SettingRule that is satisfied when setting's value is not equal to value.

Or(SettingRule[])

Creates a SettingRule rule that is true when at least one of the rules is true.

UIContext(Guid, Boolean)

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

Operators

BitwiseAnd(SettingRule, SettingRule)

Creates a SettingRule that is true when both a and b are true.

BitwiseOr(SettingRule, SettingRule)

Creates a SettingRule rule that is true when at least one of a or b is true.

Applies to