ArmCdnModelFactory.CustomRuleMatchCondition Method

Definition

Define match conditions.

public static Azure.ResourceManager.Cdn.Models.CustomRuleMatchCondition CustomRuleMatchCondition(Azure.ResourceManager.Cdn.Models.WafMatchVariable matchVariable = default, string selector = default, Azure.ResourceManager.Cdn.Models.MatchOperator matchOperator = default, bool? negateCondition = default, System.Collections.Generic.IEnumerable<string> matchValue = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Cdn.Models.TransformType> transforms = default);
static member CustomRuleMatchCondition : Azure.ResourceManager.Cdn.Models.WafMatchVariable * string * Azure.ResourceManager.Cdn.Models.MatchOperator * Nullable<bool> * seq<string> * seq<Azure.ResourceManager.Cdn.Models.TransformType> -> Azure.ResourceManager.Cdn.Models.CustomRuleMatchCondition
Public Shared Function CustomRuleMatchCondition (Optional matchVariable As WafMatchVariable = Nothing, Optional selector As String = Nothing, Optional matchOperator As MatchOperator = Nothing, Optional negateCondition As Nullable(Of Boolean) = Nothing, Optional matchValue As IEnumerable(Of String) = Nothing, Optional transforms As IEnumerable(Of TransformType) = Nothing) As CustomRuleMatchCondition

Parameters

matchVariable
WafMatchVariable

Match variable to compare against.

selector
String

Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs.

matchOperator
MatchOperator

Describes operator to be matched.

negateCondition
Nullable<Boolean>

Describes if the result of this condition should be negated.

matchValue
IEnumerable<String>

List of possible match values.

transforms
IEnumerable<TransformType>

List of transforms.

Returns

A new CustomRuleMatchCondition instance for mocking.

Applies to