Udostępnij za pośrednictwem


RewriteOptionsExtensions.Add Metoda

Definicja

Przeciążenia

Add(RewriteOptions, IRule)

Dodaje regułę do bieżących reguł.

Add(RewriteOptions, Action<RewriteContext>)

Dodaje regułę do bieżących reguł.

Add(RewriteOptions, IRule)

Źródło:
RewriteOptionsExtensions.cs
Źródło:
RewriteOptionsExtensions.cs
Źródło:
RewriteOptionsExtensions.cs

Dodaje regułę do bieżących reguł.

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

Parametry

options
RewriteOptions

Element RewriteOptions.

rule
IRule

Reguła do dodania do bieżących reguł.

Zwraca

Opcje ponownego zapisywania.

Dotyczy

Add(RewriteOptions, Action<RewriteContext>)

Źródło:
RewriteOptionsExtensions.cs
Źródło:
RewriteOptionsExtensions.cs
Źródło:
RewriteOptionsExtensions.cs

Dodaje regułę do bieżących reguł.

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

Parametry

options
RewriteOptions

Element RewriteOptions.

applyRule
Action<RewriteContext>

Func, który sprawdza i stosuje regułę.

Zwraca

Dotyczy