Represents a rule that can be used to configure request blocking or redirection


The following tables list the members exposed by Rule.

Public Constructors

  Name Description
Public method Rule Initializes a new instance of the Rule class.
Top

Public Fields

  Name Description
Public field allow Defines whether the request should be allowed
Public field match A regular expression string used to match incoming requests
Public field part The part of the request to match (ie. all, host, path)
Public field redirect The URI to redirect to if a match is found
Top

Public Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (inherited from Object)
Public method GetHashCode Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (inherited from Object)
Public method GetType Gets the Type of the current instance. (inherited from Object)
Public method Matches This method can be called to check if an incoming request matches the current rule.
Public method ToString Returns a String that represents the current Object. (inherited from Object)
Top

Protected Methods

  Name Description
Family method Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Family method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object)
Top

See Also