UrlPatternOptions Class
Options for creating a URLPattern.
public sealed class UrlPatternOptionsConstructors
| Name | Description |
|---|---|
| UrlPatternOptions() |
UrlPatternOptions()
public UrlPatternOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| IgnoreCase | Gets or sets whether the pathname, search and hash should be matched case-insensitively. |
IgnoreCase
UrlPatternOptions.csGets or sets whether the pathname, search and hash should be matched case-insensitively.
public bool IgnoreCase { get; set; }Property value
Remarks
If true, the pathname, search and hash are matched case-insensitively. If false (default), they are matched case-sensitively.
The option does not reach the protocol, username, password, hostname and port components, which the spec always compiles with the default options. In practice the protocol and hostname are still matched case-insensitively, because both the pattern and the URL are lower-cased before they are compared; the username, password and port are always case-sensitive.