RewriteOptionsExtensions.Add Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
Add(RewriteOptions, IRule) |
Menambahkan aturan ke aturan saat ini. |
Add(RewriteOptions, Action<RewriteContext>) |
Menambahkan aturan ke aturan saat ini. |
Add(RewriteOptions, IRule)
- Sumber:
- RewriteOptionsExtensions.cs
- Sumber:
- RewriteOptionsExtensions.cs
- Sumber:
- RewriteOptionsExtensions.cs
Menambahkan aturan ke aturan saat ini.
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
- options
- RewriteOptions
- rule
- IRule
Aturan yang akan ditambahkan ke aturan saat ini.
Mengembalikan
Opsi Penulisan Ulang.
Berlaku untuk
Add(RewriteOptions, Action<RewriteContext>)
- Sumber:
- RewriteOptionsExtensions.cs
- Sumber:
- RewriteOptionsExtensions.cs
- Sumber:
- RewriteOptionsExtensions.cs
Menambahkan aturan ke aturan saat ini.
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
- options
- RewriteOptions
- applyRule
- Action<RewriteContext>
Func yang memeriksa dan menerapkan aturan.