共用方式為


RewriteOptionsExtensions.AddRedirectToWww 方法

定義

多載

AddRedirectToWww(RewriteOptions)

如果連入要求不是 www,請重新導向至 www 子域。

AddRedirectToWww(RewriteOptions, Int32)

如果連入要求不是 www,請重新導向至 www 子域。

AddRedirectToWww(RewriteOptions, String[])

如果連入要求不是 www,請重新導向至 www 子域。

AddRedirectToWww(RewriteOptions, Int32, String[])

如果連入要求不是 www,請重新導向至 www 子域。

AddRedirectToWww(RewriteOptions)

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

參數

傳回

適用於

AddRedirectToWww(RewriteOptions, Int32)

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

參數

statusCode
Int32

要新增至回應的狀態碼。

傳回

適用於

AddRedirectToWww(RewriteOptions, String[])

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

參數

domains
String[]

限制規則僅適用于指定的網域 () 。

傳回

適用於

AddRedirectToWww(RewriteOptions, Int32, String[])

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

參數

statusCode
Int32

要新增至回應的狀態碼。

domains
String[]

限制規則僅適用于指定的網域 () 。

傳回

適用於