IISUrlRewriteOptionsExtensions.AddIISUrlRewrite Method

Definition

Overloads

AddIISUrlRewrite(RewriteOptions, TextReader)

Add rules from a IIS config file containing Url Rewrite rules

AddIISUrlRewrite(RewriteOptions, IFileProvider, String)

Add rules from a IIS config file containing Url Rewrite rules

AddIISUrlRewrite(RewriteOptions, TextReader, Boolean)

Add rules from a IIS config file containing Url Rewrite rules

AddIISUrlRewrite(RewriteOptions, IFileProvider, String, Boolean)

Add rules from a IIS config file containing Url Rewrite rules

AddIISUrlRewrite(RewriteOptions, TextReader)

Source:
IISUrlRewriteOptionsExtensions.cs
Source:
IISUrlRewriteOptionsExtensions.cs

Add rules from a IIS config file containing Url Rewrite rules

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

Parameters

reader
TextReader

The text reader stream.

Returns

Applies to

AddIISUrlRewrite(RewriteOptions, IFileProvider, String)

Source:
IISUrlRewriteOptionsExtensions.cs
Source:
IISUrlRewriteOptionsExtensions.cs

Add rules from a IIS config file containing Url Rewrite rules

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

Parameters

fileProvider
IFileProvider

The IFileProvider

filePath
String

The path to the file containing UrlRewrite rules.

Returns

Applies to

AddIISUrlRewrite(RewriteOptions, TextReader, Boolean)

Source:
IISUrlRewriteOptionsExtensions.cs

Add rules from a IIS config file containing Url Rewrite rules

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

Parameters

reader
TextReader

The text reader stream.

alwaysUseManagedServerVariables
Boolean

Server variables are by default sourced from the server if it supports the IServerVariablesFeature feature. Use true to disable that behavior

Returns

Applies to

AddIISUrlRewrite(RewriteOptions, IFileProvider, String, Boolean)

Source:
IISUrlRewriteOptionsExtensions.cs

Add rules from a IIS config file containing Url Rewrite rules

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

Parameters

fileProvider
IFileProvider

The IFileProvider

filePath
String

The path to the file containing UrlRewrite rules.

alwaysUseManagedServerVariables
Boolean

Server variables are by default sourced from the server if it supports the IServerVariablesFeature feature. Use true to disable that behavior

Returns

Applies to