Share via


ArraySettingItemPropertyRule.Matches Method

Definition

Overloads

Matches(SimpleSetting<String>, String)

Creates a SettingRule that is satisfied when setting's value matches the provided regular expression.

Matches(String, String)

Creates a ArraySettingItemPropertyRule that is satisfied when propertyId's value matches the provided regular expression.

Matches(SimpleSetting<String>, String)

Creates a SettingRule that is satisfied when setting's value matches the provided regular expression.

public static Microsoft.VisualStudio.Extensibility.Settings.ArraySettingItemPropertyRule Matches (Microsoft.VisualStudio.Extensibility.Settings.SimpleSetting<string> setting, string regex);
static member Matches : Microsoft.VisualStudio.Extensibility.Settings.SimpleSetting<string> * string -> Microsoft.VisualStudio.Extensibility.Settings.ArraySettingItemPropertyRule
Public Shared Function Matches (setting As SimpleSetting(Of String), regex As String) As ArraySettingItemPropertyRule

Parameters

setting
SimpleSetting<String>

The setting to evaluate.

regex
String

The regular expression to match to satisfy this rule.

Returns

A SettingRule instance.

Remarks

The rule evaluates to true if setting's value contains a match for regex, not only if it is an exact match; for an exact match, prepend ^ (beginning-of-string) and append $ (end-of-string) to the regular expression.

Applies to

Matches(String, String)

Creates a ArraySettingItemPropertyRule that is satisfied when propertyId's value matches the provided regular expression.

public static Microsoft.VisualStudio.Extensibility.Settings.ArraySettingItemPropertyRule Matches (string propertyId, string regex);
static member Matches : string * string -> Microsoft.VisualStudio.Extensibility.Settings.ArraySettingItemPropertyRule
Public Shared Function Matches (propertyId As String, regex As String) As ArraySettingItemPropertyRule

Parameters

propertyId
String

The property to evaluate.

regex
String

The regular expression to match to satisfy this rule.

Returns

A SettingRule instance.

Remarks

The rule evaluates to true if the property's value contains a match for regex, not only if it is an exact match; for an exact match, prepend ^ (beginning-of-string) and append $ (end-of-string) to the regular expression.

Applies to