⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rewriterrulecollection.cs

📁 1、用SQL查询器打开install目录下的dooogo.sql运行之后创建数据库dooogo。 2、然后打开web.config修改 <DbProvider type="Club.Fram
💻 CS
字号:
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>
	/// &lt;RewriterRule&gt;
	///   &lt;LookFor&gt;<i>pattern to search for</i>&lt;/LookFor&gt;
	///   &lt;SendTo&gt;<i>string to redirect to</i>&lt;/LookFor&gt;
	/// &lt;RewriterRule&gt;
	/// &lt;RewriterRule&gt;
	///   &lt;LookFor&gt;<i>pattern to search for</i>&lt;/LookFor&gt;
	///   &lt;SendTo&gt;<i>string to redirect to</i>&lt;/LookFor&gt;
	/// &lt;RewriterRule&gt;
	/// ...
	/// &lt;RewriterRule&gt;
	///   &lt;LookFor&gt;<i>pattern to search for</i>&lt;/LookFor&gt;
	///   &lt;SendTo&gt;<i>string to redirect to</i>&lt;/LookFor&gt;
	/// &lt;RewriterRule&gt;
	/// </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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -