Condividi tramite


RewriteOptionsExtensions.Add Metodo

Definizione

Overload

Add(RewriteOptions, IRule)

Aggiunge una regola alle regole correnti.

Add(RewriteOptions, Action<RewriteContext>)

Aggiunge una regola alle regole correnti.

Add(RewriteOptions, IRule)

Origine:
RewriteOptionsExtensions.cs
Origine:
RewriteOptionsExtensions.cs
Origine:
RewriteOptionsExtensions.cs

Aggiunge una regola alle regole correnti.

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

Parametri

options
RewriteOptions

Oggetto RewriteOptions.

rule
IRule

Regola da aggiungere alle regole correnti.

Restituisce

Opzioni Di riscrittura.

Si applica a

Add(RewriteOptions, Action<RewriteContext>)

Origine:
RewriteOptionsExtensions.cs
Origine:
RewriteOptionsExtensions.cs
Origine:
RewriteOptionsExtensions.cs

Aggiunge una regola alle regole correnti.

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

Parametri

options
RewriteOptions

Oggetto RewriteOptions.

applyRule
Action<RewriteContext>

Func che controlla e applica la regola.

Restituisce

Si applica a