IISUrlRewriteOptionsExtensions.AddIISUrlRewrite 方法

定义

重载

AddIISUrlRewrite(RewriteOptions, TextReader)

从包含 URL 重写规则的 IIS 配置文件添加规则

AddIISUrlRewrite(RewriteOptions, IFileProvider, String)

从包含 URL 重写规则的 IIS 配置文件添加规则

AddIISUrlRewrite(RewriteOptions, TextReader, Boolean)

从包含 URL 重写规则的 IIS 配置文件添加规则

AddIISUrlRewrite(RewriteOptions, IFileProvider, String, Boolean)

从包含 URL 重写规则的 IIS 配置文件添加规则

AddIISUrlRewrite(RewriteOptions, TextReader)

Source:
IISUrlRewriteOptionsExtensions.cs
Source:
IISUrlRewriteOptionsExtensions.cs

从包含 URL 重写规则的 IIS 配置文件添加规则

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

参数

reader
TextReader

文本读取器流。

返回

适用于

AddIISUrlRewrite(RewriteOptions, IFileProvider, String)

Source:
IISUrlRewriteOptionsExtensions.cs
Source:
IISUrlRewriteOptionsExtensions.cs

从包含 URL 重写规则的 IIS 配置文件添加规则

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

参数

filePath
String

包含 UrlRewrite 规则的文件的路径。

返回

适用于

AddIISUrlRewrite(RewriteOptions, TextReader, Boolean)

Source:
IISUrlRewriteOptionsExtensions.cs

从包含 URL 重写规则的 IIS 配置文件添加规则

public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddIISUrlRewrite (this Microsoft.AspNetCore.Rewrite.RewriteOptions options, System.IO.TextReader reader, bool alwaysUseManagedServerVariables = false);
static member AddIISUrlRewrite : Microsoft.AspNetCore.Rewrite.RewriteOptions * System.IO.TextReader * bool -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddIISUrlRewrite (options As RewriteOptions, reader As TextReader, Optional alwaysUseManagedServerVariables As Boolean = false) As RewriteOptions

参数

reader
TextReader

文本读取器流。

alwaysUseManagedServerVariables
Boolean

默认情况下,如果服务器支持 IServerVariablesFeature 该功能,则服务器变量会从服务器中获取。 使用 true 禁用该行为

返回

适用于

AddIISUrlRewrite(RewriteOptions, IFileProvider, String, Boolean)

Source:
IISUrlRewriteOptionsExtensions.cs

从包含 URL 重写规则的 IIS 配置文件添加规则

public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddIISUrlRewrite (this Microsoft.AspNetCore.Rewrite.RewriteOptions options, Microsoft.Extensions.FileProviders.IFileProvider fileProvider, string filePath, bool alwaysUseManagedServerVariables = false);
static member AddIISUrlRewrite : Microsoft.AspNetCore.Rewrite.RewriteOptions * Microsoft.Extensions.FileProviders.IFileProvider * string * bool -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddIISUrlRewrite (options As RewriteOptions, fileProvider As IFileProvider, filePath As String, Optional alwaysUseManagedServerVariables As Boolean = false) As RewriteOptions

参数

filePath
String

包含 UrlRewrite 规则的文件的路径。

alwaysUseManagedServerVariables
Boolean

默认情况下,如果服务器支持 IServerVariablesFeature 该功能,则服务器变量会从服务器中获取。 使用 true 禁用该行为

返回

适用于