Container for one routing rule that identifies a condition and a redirect that applies when the condition is met.
Declaration Syntax
C# |
public class RoutingRule
Members
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
RoutingRule()()()() | Initializes a new instance of the RoutingRule class | |
Condition |
A container for describing a condition that must be met for the specified redirect to apply.
For example if request is for pages in the /docs folder, redirect to the /documents folder or
if request results in HTTP error 4xx, redirect request to another host where you might process the error.
| |
Equals(Object) | (Inherited from Object.) | |
GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType()()()() | Gets the type of the current instance. (Inherited from Object.) | |
Redirect |
Container for redirect information. You can redirect requests to another host, to
another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
| |
ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) | |
WithCondition(RoutingRuleCondition) | Obsolete.
A container for describing a condition that must be met for the specified redirect to apply.
For example if request is for pages in the /docs folder, redirect to the /documents folder or
if request results in HTTP error 4xx, redirect request to another host where you might process the error.
| |
WithRedirect(RoutingRuleRedirect) | Obsolete.
You can redirect requests to another host, to
another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
|
Inheritance Hierarchy
Object | |
RoutingRule |