KestrelServerOptionsHttpsExtensions.UseHttps Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Przeciążenia
UseHttps(KestrelServerOptions, HttpsConnectionFilterOptions) |
Skonfiguruj platformę Kestrel do używania protokołu HTTPS. |
UseHttps(KestrelServerOptions, X509Certificate2) |
Skonfiguruj platformę Kestrel do używania protokołu HTTPS. |
UseHttps(KestrelServerOptions, String) |
Skonfiguruj platformę Kestrel do używania protokołu HTTPS. |
UseHttps(KestrelServerOptions, String, String) |
Skonfiguruj platformę Kestrel do używania protokołu HTTPS. |
UseHttps(KestrelServerOptions, HttpsConnectionFilterOptions)
Skonfiguruj platformę Kestrel do używania protokołu HTTPS.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Server::Kestrel::KestrelServerOptions ^ UseHttps(Microsoft::AspNetCore::Server::Kestrel::KestrelServerOptions ^ options, Microsoft::AspNetCore::Server::Kestrel::Https::HttpsConnectionFilterOptions ^ httpsOptions);
public static Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions UseHttps (this Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions options, Microsoft.AspNetCore.Server.Kestrel.Https.HttpsConnectionFilterOptions httpsOptions);
static member UseHttps : Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions * Microsoft.AspNetCore.Server.Kestrel.Https.HttpsConnectionFilterOptions -> Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions
<Extension()>
Public Function UseHttps (options As KestrelServerOptions, httpsOptions As HttpsConnectionFilterOptions) As KestrelServerOptions
Parametry
- options
- KestrelServerOptions
Konfigurowanie elementu Microsoft.AspNetCore.Server.KestrelServerOptions.
- httpsOptions
- HttpsConnectionFilterOptions
Opcje konfigurowania protokołu HTTPS.
Zwraca
The Microsoft.AspNetCore.Server.KestrelServerOptions.
Dotyczy
UseHttps(KestrelServerOptions, X509Certificate2)
Skonfiguruj platformę Kestrel do używania protokołu HTTPS.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Server::Kestrel::KestrelServerOptions ^ UseHttps(Microsoft::AspNetCore::Server::Kestrel::KestrelServerOptions ^ options, System::Security::Cryptography::X509Certificates::X509Certificate2 ^ serverCertificate);
public static Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions UseHttps (this Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions options, System.Security.Cryptography.X509Certificates.X509Certificate2 serverCertificate);
static member UseHttps : Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions * System.Security.Cryptography.X509Certificates.X509Certificate2 -> Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions
<Extension()>
Public Function UseHttps (options As KestrelServerOptions, serverCertificate As X509Certificate2) As KestrelServerOptions
Parametry
- options
- KestrelServerOptions
Konfigurowanie elementu Microsoft.AspNetCore.Server.KestrelServerOptions.
- serverCertificate
- X509Certificate2
Certyfikat X.509.
Zwraca
The Microsoft.AspNetCore.Server.KestrelServerOptions.
Dotyczy
UseHttps(KestrelServerOptions, String)
Skonfiguruj platformę Kestrel do używania protokołu HTTPS.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Server::Kestrel::KestrelServerOptions ^ UseHttps(Microsoft::AspNetCore::Server::Kestrel::KestrelServerOptions ^ options, System::String ^ fileName);
public static Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions UseHttps (this Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions options, string fileName);
static member UseHttps : Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions * string -> Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions
<Extension()>
Public Function UseHttps (options As KestrelServerOptions, fileName As String) As KestrelServerOptions
Parametry
- options
- KestrelServerOptions
Konfigurowanie elementu Microsoft.AspNetCore.Server.KestrelServerOptions.
- fileName
- String
Nazwa pliku certyfikatu względem katalogu zawierającego pliki zawartości aplikacji.
Zwraca
The Microsoft.AspNetCore.Server.KestrelServerOptions.
Dotyczy
UseHttps(KestrelServerOptions, String, String)
Skonfiguruj platformę Kestrel do używania protokołu HTTPS.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Server::Kestrel::KestrelServerOptions ^ UseHttps(Microsoft::AspNetCore::Server::Kestrel::KestrelServerOptions ^ options, System::String ^ fileName, System::String ^ password);
public static Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions UseHttps (this Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions options, string fileName, string password);
static member UseHttps : Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions * string * string -> Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions
<Extension()>
Public Function UseHttps (options As KestrelServerOptions, fileName As String, password As String) As KestrelServerOptions
Parametry
- options
- KestrelServerOptions
Konfigurowanie elementu Microsoft.AspNetCore.Server.KestrelServerOptions.
- fileName
- String
Nazwa pliku certyfikatu względem katalogu zawierającego pliki zawartości aplikacji.
- password
- String
Hasło wymagane do uzyskania dostępu do danych certyfikatu X.509.
Zwraca
The Microsoft.AspNetCore.Server.KestrelServerOptions.