Freigeben über


RewriteOptionsExtensions.AddRedirectToHttps Methode

Definition

Überlädt

AddRedirectToHttps(RewriteOptions)

Umleiten einer Anforderung an https, wenn die eingehende Anforderung HTTP ist

AddRedirectToHttps(RewriteOptions, Int32)

Umleiten einer Anforderung an https, wenn die eingehende Anforderung HTTP ist

AddRedirectToHttps(RewriteOptions, Int32, Nullable<Int32>)

Umleiten einer Anforderung an https, wenn die eingehende Anforderung HTTP ist

AddRedirectToHttps(RewriteOptions)

Quelle:
RewriteOptionsExtensions.cs
Quelle:
RewriteOptionsExtensions.cs
Quelle:
RewriteOptionsExtensions.cs

Umleiten einer Anforderung an https, wenn die eingehende Anforderung HTTP ist

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

Parameter

Gibt zurück

Gilt für:

AddRedirectToHttps(RewriteOptions, Int32)

Quelle:
RewriteOptionsExtensions.cs
Quelle:
RewriteOptionsExtensions.cs
Quelle:
RewriteOptionsExtensions.cs

Umleiten einer Anforderung an https, wenn die eingehende Anforderung HTTP ist

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

Parameter

statusCode
Int32

Der status Code, der der Antwort hinzugefügt werden soll.

Gibt zurück

Gilt für:

AddRedirectToHttps(RewriteOptions, Int32, Nullable<Int32>)

Quelle:
RewriteOptionsExtensions.cs
Quelle:
RewriteOptionsExtensions.cs
Quelle:
RewriteOptionsExtensions.cs

Umleiten einer Anforderung an https, wenn die eingehende Anforderung HTTP ist

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

Parameter

statusCode
Int32

Der status Code, der der Antwort hinzugefügt werden soll.

sslPort
Nullable<Int32>

Der SSL-Port, der der Antwort hinzugefügt werden soll.

Gibt zurück

Gilt für: