RewriteOptionsExtensions.Add Yöntem

Tanım

Aşırı Yüklemeler

Add(RewriteOptions, IRule)

Geçerli kurallara bir kural ekler.

Add(RewriteOptions, Action<RewriteContext>)

Geçerli kurallara bir kural ekler.

Add(RewriteOptions, IRule)

Geçerli kurallara bir kural ekler.

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

Parametreler

rule
IRule

Geçerli kurallara eklenecek kural.

Döndürülenler

Yeniden yazma seçenekleri.

Şunlara uygulanır

Add(RewriteOptions, Action<RewriteContext>)

Geçerli kurallara bir kural ekler.

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

Parametreler

applyRule
Action<RewriteContext>

Kuralı denetleden ve uygulayan bir Func.

Döndürülenler

Şunlara uygulanır