共用方式為


ApacheModRewriteOptionsExtensions.AddApacheModRewrite 方法

定義

多載

AddApacheModRewrite(RewriteOptions, TextReader)

從 Apache mod_rewrite 檔案新增規則

AddApacheModRewrite(RewriteOptions, IFileProvider, String)

從 Apache mod_rewrite 檔案新增規則

AddApacheModRewrite(RewriteOptions, TextReader)

來源:
ApacheModRewriteOptionsExtensions.cs
來源:
ApacheModRewriteOptionsExtensions.cs
來源:
ApacheModRewriteOptionsExtensions.cs

從 Apache mod_rewrite 檔案新增規則

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Rewrite::RewriteOptions ^ AddApacheModRewrite(Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options, System::IO::TextReader ^ reader);
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddApacheModRewrite (this Microsoft.AspNetCore.Rewrite.RewriteOptions options, System.IO.TextReader reader);
static member AddApacheModRewrite : Microsoft.AspNetCore.Rewrite.RewriteOptions * System.IO.TextReader -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddApacheModRewrite (options As RewriteOptions, reader As TextReader) As RewriteOptions

參數

reader
TextReader

mod_rewrite規則的資料流程。

傳回

適用於

AddApacheModRewrite(RewriteOptions, IFileProvider, String)

來源:
ApacheModRewriteOptionsExtensions.cs
來源:
ApacheModRewriteOptionsExtensions.cs
來源:
ApacheModRewriteOptionsExtensions.cs

從 Apache mod_rewrite 檔案新增規則

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Rewrite::RewriteOptions ^ AddApacheModRewrite(Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options, Microsoft::Extensions::FileProviders::IFileProvider ^ fileProvider, System::String ^ filePath);
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddApacheModRewrite (this Microsoft.AspNetCore.Rewrite.RewriteOptions options, Microsoft.Extensions.FileProviders.IFileProvider fileProvider, string filePath);
static member AddApacheModRewrite : Microsoft.AspNetCore.Rewrite.RewriteOptions * Microsoft.Extensions.FileProviders.IFileProvider * string -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddApacheModRewrite (options As RewriteOptions, fileProvider As IFileProvider, filePath As String) As RewriteOptions

參數

filePath
String

包含mod_rewrite規則之檔案的路徑。

傳回

適用於