rewriterrulecollection.cs
来自「1、用SQL查询器打开install目录下的dooogo.sql运行之后创建数据」· CS 代码 · 共 55 行
CS
55 行
using System;
using System.Collections;
namespace Club.Common.URLRewriter.Config
{
/// <summary>
/// The RewriterRuleCollection models a set of RewriterRules in the Web.config file.
/// </summary>
/// <remarks>
/// The RewriterRuleCollection is expressed in XML as:
/// <code>
/// <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>
/// </code>
/// </remarks>
[Serializable()]
public class RewriterRuleCollection : CollectionBase
{
/// <summary>
/// Adds a new RewriterRule to the collection.
/// </summary>
/// <param name="r">A RewriterRule instance.</param>
public virtual void Add(RewriterRule r)
{
this.InnerList.Add(r);
}
/// <summary>
/// Gets or sets a RewriterRule at a specified ordinal index.
/// </summary>
public RewriterRule this[int index]
{
get
{
return (RewriterRule) this.InnerList[index];
}
set
{
this.InnerList[index] = value;
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?