共用方式為


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)

來源:
IISUrlRewriteOptionsExtensions.cs
來源:
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)

來源:
IISUrlRewriteOptionsExtensions.cs
來源:
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)

來源:
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)

來源:
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 停用該行為

傳回

適用於