RewriteOptionsExtensions.AddRedirectToWww 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddRedirectToWww(RewriteOptions) |
如果传入请求不是 www,则将请求重定向到 www 子域。 |
AddRedirectToWww(RewriteOptions, Int32) |
如果传入请求不是 www,则将请求重定向到 www 子域。 |
AddRedirectToWww(RewriteOptions, String[]) |
如果传入请求不是 www,则将请求重定向到 www 子域。 |
AddRedirectToWww(RewriteOptions, Int32, String[]) |
如果传入请求不是 www,则将请求重定向到 www 子域。 |
AddRedirectToWww(RewriteOptions)
- Source:
- RewriteOptionsExtensions.cs
- Source:
- RewriteOptionsExtensions.cs
- Source:
- RewriteOptionsExtensions.cs
如果传入请求不是 www,则将请求重定向到 www 子域。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Rewrite::RewriteOptions ^ AddRedirectToWww(Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options);
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToWww (this Microsoft.AspNetCore.Rewrite.RewriteOptions options);
static member AddRedirectToWww : Microsoft.AspNetCore.Rewrite.RewriteOptions -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddRedirectToWww (options As RewriteOptions) As RewriteOptions
参数
- options
- RewriteOptions
返回
适用于
AddRedirectToWww(RewriteOptions, Int32)
- Source:
- RewriteOptionsExtensions.cs
- Source:
- RewriteOptionsExtensions.cs
- Source:
- RewriteOptionsExtensions.cs
如果传入请求不是 www,则将请求重定向到 www 子域。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Rewrite::RewriteOptions ^ AddRedirectToWww(Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options, int statusCode);
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToWww (this Microsoft.AspNetCore.Rewrite.RewriteOptions options, int statusCode);
static member AddRedirectToWww : Microsoft.AspNetCore.Rewrite.RewriteOptions * int -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddRedirectToWww (options As RewriteOptions, statusCode As Integer) As RewriteOptions
参数
- options
- RewriteOptions
- statusCode
- Int32
要添加到响应的状态代码。
返回
适用于
AddRedirectToWww(RewriteOptions, String[])
- Source:
- RewriteOptionsExtensions.cs
如果传入请求不是 www,则将请求重定向到 www 子域。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Rewrite::RewriteOptions ^ AddRedirectToWww(Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options, ... cli::array <System::String ^> ^ domains);
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToWww (this Microsoft.AspNetCore.Rewrite.RewriteOptions options, params string[] domains);
static member AddRedirectToWww : Microsoft.AspNetCore.Rewrite.RewriteOptions * string[] -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddRedirectToWww (options As RewriteOptions, ParamArray domains As String()) As RewriteOptions
参数
- options
- RewriteOptions
- domains
- String[]
将规则限制为仅应用于指定的域 () 。
返回
适用于
AddRedirectToWww(RewriteOptions, Int32, String[])
- Source:
- RewriteOptionsExtensions.cs
如果传入请求不是 www,则将请求重定向到 www 子域。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Rewrite::RewriteOptions ^ AddRedirectToWww(Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options, int statusCode, ... cli::array <System::String ^> ^ domains);
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToWww (this Microsoft.AspNetCore.Rewrite.RewriteOptions options, int statusCode, params string[] domains);
static member AddRedirectToWww : Microsoft.AspNetCore.Rewrite.RewriteOptions * int * string[] -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddRedirectToWww (options As RewriteOptions, statusCode As Integer, ParamArray domains As String()) As RewriteOptions
参数
- options
- RewriteOptions
- statusCode
- Int32
要添加到响应的状态代码。
- domains
- String[]
将规则限制为仅应用于指定的域 () 。