Class BlockPattern
public sealed record BlockPattern : IEquatable<BlockPattern>
- Inheritance
-
BlockPattern
- Implements
- Inherited Members
Constructors
BlockPattern(string, bool)
public BlockPattern(string UrlPattern, bool Block)
Parameters
UrlPatternstringURL pattern to match. Patterns use the URLPattern constructor string syntax (https://urlpattern.spec.whatwg.org/) and must be absolute. Example: ://:/.css.
BlockboolWhether or not to block the pattern. If false, a matching request will not be blocked even if it matches a later BlockPattern.
Properties
Block
Whether or not to block the pattern. If false, a matching request will not be blocked even if it matches a later BlockPattern.
public bool Block { get; init; }
Property Value
UrlPattern
URL pattern to match. Patterns use the URLPattern constructor string syntax (https://urlpattern.spec.whatwg.org/) and must be absolute. Example: ://:/.css.
public string UrlPattern { get; init; }