ApacheModRewriteOptionsExtensions.AddApacheModRewrite 方法

定义

重载

AddApacheModRewrite(RewriteOptions, TextReader)

从 Apache mod_rewrite 文件添加规则

AddApacheModRewrite(RewriteOptions, IFileProvider, String)

从 Apache mod_rewrite 文件添加规则

AddApacheModRewrite(RewriteOptions, TextReader)

Source:
ApacheModRewriteOptionsExtensions.cs
Source:
ApacheModRewriteOptionsExtensions.cs
Source:
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)

Source:
ApacheModRewriteOptionsExtensions.cs
Source:
ApacheModRewriteOptionsExtensions.cs
Source:
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规则的文件的路径。

返回

适用于