Freigeben über


RewriteOptionsExtensions.Add Methode

Definition

Überlädt

Add(RewriteOptions, IRule)

Fügt den aktuellen Regeln eine Regel hinzu.

Add(RewriteOptions, Action<RewriteContext>)

Fügt den aktuellen Regeln eine Regel hinzu.

Add(RewriteOptions, IRule)

Quelle:
RewriteOptionsExtensions.cs
Quelle:
RewriteOptionsExtensions.cs
Quelle:
RewriteOptionsExtensions.cs

Fügt den aktuellen Regeln eine Regel hinzu.

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

Parameter

rule
IRule

Eine Regel, die den aktuellen Regeln hinzugefügt werden soll.

Gibt zurück

Die Rewrite-Optionen.

Gilt für:

Add(RewriteOptions, Action<RewriteContext>)

Quelle:
RewriteOptionsExtensions.cs
Quelle:
RewriteOptionsExtensions.cs
Quelle:
RewriteOptionsExtensions.cs

Fügt den aktuellen Regeln eine Regel hinzu.

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

Parameter

applyRule
Action<RewriteContext>

Ein Func, der die Regel überprüft und anwendet.

Gibt zurück

Gilt für: