次の方法で共有


RewriteOptionsExtensions.AddRedirectToHttps メソッド

定義

オーバーロード

AddRedirectToHttps(RewriteOptions)

受信要求が http の場合に https に要求をリダイレクトする

AddRedirectToHttps(RewriteOptions, Int32)

受信要求が http の場合に https に要求をリダイレクトする

AddRedirectToHttps(RewriteOptions, Int32, Nullable<Int32>)

受信要求が http の場合に https に要求をリダイレクトする

AddRedirectToHttps(RewriteOptions)

ソース:
RewriteOptionsExtensions.cs
ソース:
RewriteOptionsExtensions.cs
ソース:
RewriteOptionsExtensions.cs

受信要求が http の場合に https に要求をリダイレクトする

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Rewrite::RewriteOptions ^ AddRedirectToHttps(Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options);
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToHttps (this Microsoft.AspNetCore.Rewrite.RewriteOptions options);
static member AddRedirectToHttps : Microsoft.AspNetCore.Rewrite.RewriteOptions -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddRedirectToHttps (options As RewriteOptions) As RewriteOptions

パラメーター

戻り値

適用対象

AddRedirectToHttps(RewriteOptions, Int32)

ソース:
RewriteOptionsExtensions.cs
ソース:
RewriteOptionsExtensions.cs
ソース:
RewriteOptionsExtensions.cs

受信要求が http の場合に https に要求をリダイレクトする

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Rewrite::RewriteOptions ^ AddRedirectToHttps(Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options, int statusCode);
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToHttps (this Microsoft.AspNetCore.Rewrite.RewriteOptions options, int statusCode);
static member AddRedirectToHttps : Microsoft.AspNetCore.Rewrite.RewriteOptions * int -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddRedirectToHttps (options As RewriteOptions, statusCode As Integer) As RewriteOptions

パラメーター

statusCode
Int32

応答に追加する状態コード。

戻り値

適用対象

AddRedirectToHttps(RewriteOptions, Int32, Nullable<Int32>)

ソース:
RewriteOptionsExtensions.cs
ソース:
RewriteOptionsExtensions.cs
ソース:
RewriteOptionsExtensions.cs

受信要求が http の場合に https に要求をリダイレクトする

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Rewrite::RewriteOptions ^ AddRedirectToHttps(Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options, int statusCode, Nullable<int> sslPort);
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToHttps (this Microsoft.AspNetCore.Rewrite.RewriteOptions options, int statusCode, int? sslPort);
static member AddRedirectToHttps : Microsoft.AspNetCore.Rewrite.RewriteOptions * int * Nullable<int> -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddRedirectToHttps (options As RewriteOptions, statusCode As Integer, sslPort As Nullable(Of Integer)) As RewriteOptions

パラメーター

statusCode
Int32

応答に追加する状態コード。

sslPort
Nullable<Int32>

応答に追加する SSL ポート。

戻り値

適用対象