Bagikan melalui


IISUrlRewriteOptionsExtensions.AddIISUrlRewrite Metode

Definisi

Overload

AddIISUrlRewrite(RewriteOptions, TextReader)

Menambahkan aturan dari file konfigurasi IIS yang berisi aturan Penulisan Ulang Url

AddIISUrlRewrite(RewriteOptions, IFileProvider, String)

Menambahkan aturan dari file konfigurasi IIS yang berisi aturan Penulisan Ulang Url

AddIISUrlRewrite(RewriteOptions, TextReader, Boolean)

Menambahkan aturan dari file konfigurasi IIS yang berisi aturan Penulisan Ulang Url

AddIISUrlRewrite(RewriteOptions, IFileProvider, String, Boolean)

Menambahkan aturan dari file konfigurasi IIS yang berisi aturan Penulisan Ulang Url

AddIISUrlRewrite(RewriteOptions, TextReader)

Sumber:
IISUrlRewriteOptionsExtensions.cs
Sumber:
IISUrlRewriteOptionsExtensions.cs

Menambahkan aturan dari file konfigurasi IIS yang berisi aturan Penulisan Ulang Url

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

Parameter

reader
TextReader

Aliran pembaca teks.

Mengembalikan

Berlaku untuk

AddIISUrlRewrite(RewriteOptions, IFileProvider, String)

Sumber:
IISUrlRewriteOptionsExtensions.cs
Sumber:
IISUrlRewriteOptionsExtensions.cs

Menambahkan aturan dari file konfigurasi IIS yang berisi aturan Penulisan Ulang Url

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

Parameter

fileProvider
IFileProvider

Tje IFileProvider

filePath
String

Jalur ke file yang berisi aturan UrlRewrite.

Mengembalikan

Berlaku untuk

AddIISUrlRewrite(RewriteOptions, TextReader, Boolean)

Sumber:
IISUrlRewriteOptionsExtensions.cs

Menambahkan aturan dari file konfigurasi IIS yang berisi aturan Penulisan Ulang Url

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

Parameter

reader
TextReader

Aliran pembaca teks.

alwaysUseManagedServerVariables
Boolean

Variabel server secara default bersumber dari server jika mendukung fitur tersebut IServerVariablesFeature . Gunakan true untuk menonaktifkan perilaku tersebut

Mengembalikan

Berlaku untuk

AddIISUrlRewrite(RewriteOptions, IFileProvider, String, Boolean)

Sumber:
IISUrlRewriteOptionsExtensions.cs

Menambahkan aturan dari file konfigurasi IIS yang berisi aturan Penulisan Ulang Url

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

Parameter

fileProvider
IFileProvider

Tje IFileProvider

filePath
String

Jalur ke file yang berisi aturan UrlRewrite.

alwaysUseManagedServerVariables
Boolean

Variabel server secara default bersumber dari server jika mendukung fitur tersebut IServerVariablesFeature . Gunakan true untuk menonaktifkan perilaku tersebut

Mengembalikan

Berlaku untuk