Click or drag to resize
RewriterRuleCollection Class
The RewriterRuleCollection models a set of RewriterRules in the Web.config file.
Inheritance Hierarchy
SystemObject
  System.CollectionsCollectionBase
    X3Platform.Web.UrlRewriter.ConfigurationRewriterRuleCollection

Namespace: X3Platform.Web.UrlRewriter.Configuration
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
[SerializableAttribute]
public class RewriterRuleCollection : CollectionBase

The RewriterRuleCollection type exposes the following members.

Constructors
  NameDescription
Public methodRewriterRuleCollection
Initializes a new instance of the RewriterRuleCollection class
Top
Methods
  NameDescription
Public methodAdd
Adds a new RewriterRule to the collection.
Public methodClear (Inherited from CollectionBase.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetEnumerator (Inherited from CollectionBase.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodOnClear (Inherited from CollectionBase.)
Protected methodOnClearComplete (Inherited from CollectionBase.)
Protected methodOnInsert (Inherited from CollectionBase.)
Protected methodOnInsertComplete (Inherited from CollectionBase.)
Protected methodOnRemove (Inherited from CollectionBase.)
Protected methodOnRemoveComplete (Inherited from CollectionBase.)
Protected methodOnSet (Inherited from CollectionBase.)
Protected methodOnSetComplete (Inherited from CollectionBase.)
Protected methodOnValidate (Inherited from CollectionBase.)
Public methodRemoveAt (Inherited from CollectionBase.)
Public methodToString (Inherited from Object.)
Top
Properties
  NameDescription
Public propertyCapacity (Inherited from CollectionBase.)
Public propertyCount (Inherited from CollectionBase.)
Protected propertyInnerList (Inherited from CollectionBase.)
Public propertyItem
Gets or sets a RewriterRule at a specified ordinal index.
Protected propertyList (Inherited from CollectionBase.)
Top
Remarks
The RewriterRuleCollection is expressed in XML as:
<RewriterRule>
  <LookFor><i>pattern to search for</i></LookFor>
  <SendTo><i>string to redirect to</i></LookFor>
<RewriterRule>
<RewriterRule>
  <LookFor><i>pattern to search for</i></LookFor>
  <SendTo><i>string to redirect to</i></LookFor>
<RewriterRule>
...
<RewriterRule>
  <LookFor><i>pattern to search for</i></LookFor>
  <SendTo><i>string to redirect to</i></LookFor>
<RewriterRule>
See Also