RewriteOptionsExtensions.Add 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Add(RewriteOptions, IRule) |
将规则添加到当前规则。 |
Add(RewriteOptions, Action<RewriteContext>) |
将规则添加到当前规则。 |
Add(RewriteOptions, IRule)
- Source:
- RewriteOptionsExtensions.cs
- Source:
- RewriteOptionsExtensions.cs
- Source:
- RewriteOptionsExtensions.cs
将规则添加到当前规则。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Rewrite::RewriteOptions ^ Add(Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options, Microsoft::AspNetCore::Rewrite::IRule ^ rule);
public static Microsoft.AspNetCore.Rewrite.RewriteOptions Add (this Microsoft.AspNetCore.Rewrite.RewriteOptions options, Microsoft.AspNetCore.Rewrite.IRule rule);
static member Add : Microsoft.AspNetCore.Rewrite.RewriteOptions * Microsoft.AspNetCore.Rewrite.IRule -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function Add (options As RewriteOptions, rule As IRule) As RewriteOptions
参数
- options
- RewriteOptions
- rule
- IRule
要添加到当前规则的规则。
返回
重写选项。
适用于
Add(RewriteOptions, Action<RewriteContext>)
- Source:
- RewriteOptionsExtensions.cs
- Source:
- RewriteOptionsExtensions.cs
- Source:
- RewriteOptionsExtensions.cs
将规则添加到当前规则。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Rewrite::RewriteOptions ^ Add(Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options, Action<Microsoft::AspNetCore::Rewrite::RewriteContext ^> ^ applyRule);
public static Microsoft.AspNetCore.Rewrite.RewriteOptions Add (this Microsoft.AspNetCore.Rewrite.RewriteOptions options, Action<Microsoft.AspNetCore.Rewrite.RewriteContext> applyRule);
static member Add : Microsoft.AspNetCore.Rewrite.RewriteOptions * Action<Microsoft.AspNetCore.Rewrite.RewriteContext> -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function Add (options As RewriteOptions, applyRule As Action(Of RewriteContext)) As RewriteOptions
参数
- options
- RewriteOptions
- applyRule
- Action<RewriteContext>
检查并应用规则的 Func。