HeaderMatchMode Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
How to match header values.
public enum HeaderMatchMode
type HeaderMatchMode =
Public Enum HeaderMatchMode
- Inheritance
-
HeaderMatchMode
Fields
Name | Value | Description |
---|---|---|
ExactHeader | 0 | Any of the headers with the given name must match in its entirety, subject to case sensitivity settings. If a header contains multiple values (separated by , or ;), they are split before matching. A single pair of quotes will also be stripped from the value before matching. |
HeaderPrefix | 1 | Any of the headers with the given name must match by prefix, subject to case sensitivity settings. If a header contains multiple values (separated by , or ;), they are split before matching. A single pair of quotes will also be stripped from the value before matching. |
Contains | 2 | Any of the headers with the given name must contain any of the match values, subject to case sensitivity settings. |
NotContains | 3 | The header must exist and the value must be non-empty. None of the headers with the given name may contain any of the match values, subject to case sensitivity settings. |
Exists | 4 | The header must exist and contain any non-empty value. If there are multiple headers with the same name, the rule will also match. |
NotExists | 5 | The header must not exist. |