RewriteOptionsExtensions.Add RewriteOptionsExtensions.Add RewriteOptionsExtensions.Add Method

Definition

Overloads

Add(RewriteOptions, IRule) Add(RewriteOptions, IRule) Add(RewriteOptions, IRule)

Adds a rule to the current rules.

Add(RewriteOptions, Action<RewriteContext>) Add(RewriteOptions, Action<RewriteContext>) Add(RewriteOptions, Action<RewriteContext>)

Adds a rule to the current rules.

Add(RewriteOptions, IRule) Add(RewriteOptions, IRule) Add(RewriteOptions, IRule)

Adds a rule to the current rules.

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

Parameters

rule
IRule IRule IRule

A rule to be added to the current rules.

Returns

Add(RewriteOptions, Action<RewriteContext>) Add(RewriteOptions, Action<RewriteContext>) Add(RewriteOptions, Action<RewriteContext>)

Adds a rule to the current rules.

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

Parameters

applyRule
Action<RewriteContext>

A Func that checks and applies the rule.

Returns

Applies to