Represents a rule that can be used to configure request blocking or redirection
The following tables list the members exposed by Rule.
Public Constructors
Public Fields
| Name | Description | |
|---|---|---|
|
allow | Defines whether the request should be allowed |
|
match | A regular expression string used to match incoming requests |
|
part | The part of the request to match (ie. all, host, path) |
|
redirect | The URI to redirect to if a match is found |
Public Methods
| Name | Description | |
|---|---|---|
|
Equals | Determines whether the specified |
|
GetHashCode | Serves as a hash function for a particular type. |
|
GetType | Gets the |
|
Matches | This method can be called to check if an incoming request matches the current rule. |
|
ToString | Returns a |
Protected Methods
| Name | Description | |
|---|---|---|
|
Finalize | Allows an |
|
MemberwiseClone | Creates a shallow copy of the current |