Freigeben über


MatchCondition Class

Definition

Define a match condition.

public class MatchCondition
type MatchCondition = class
Public Class MatchCondition
Inheritance
MatchCondition

Constructors

MatchCondition()

Initializes a new instance of the MatchCondition class.

MatchCondition(String, String, IList<String>, String, Nullable<Boolean>, IList<String>)

Initializes a new instance of the MatchCondition class.

Properties

MatchValue

Gets or sets list of possible match values.

MatchVariable

Gets or sets request variable to compare with. Possible values include: 'RemoteAddr', 'RequestMethod', 'QueryString', 'PostArgs', 'RequestUri', 'RequestHeader', 'RequestBody', 'Cookies', 'SocketAddr'

NegateCondition

Gets or sets describes if the result of this condition should be negated.

OperatorProperty

Gets or sets comparison type to use for matching with the variable value. Possible values include: 'Any', 'IPMatch', 'GeoMatch', 'Equal', 'Contains', 'LessThan', 'GreaterThan', 'LessThanOrEqual', 'GreaterThanOrEqual', 'BeginsWith', 'EndsWith', 'RegEx'

Selector

Gets or sets match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null.

Transforms

Gets or sets list of transforms.

Methods

Validate()

Validate the object.

Extension Methods

ToPSMatchCondition(MatchCondition)

Applies to