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)
如果連入要求不是 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)
如果連入要求不是 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[])
如果連入要求不是 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[])
如果連入要求不是 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[]
限制規則僅適用于指定的網域 () 。