KestrelServerOptionsHttpsExtensions.UseHttps Metode

Definisi

Overload

Nama Deskripsi
UseHttps(KestrelServerOptions, HttpsConnectionFilterOptions)

Konfigurasikan Kestrel untuk menggunakan HTTPS.

UseHttps(KestrelServerOptions, X509Certificate2)

Konfigurasikan Kestrel untuk menggunakan HTTPS.

UseHttps(KestrelServerOptions, String)

Konfigurasikan Kestrel untuk menggunakan HTTPS.

UseHttps(KestrelServerOptions, String, String)

Konfigurasikan Kestrel untuk menggunakan HTTPS.

UseHttps(KestrelServerOptions, HttpsConnectionFilterOptions)

Konfigurasikan Kestrel untuk menggunakan 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

Parameter

options
KestrelServerOptions

Microsoft.AspNetCore.Server.KestrelServerOptions untuk dikonfigurasi.

httpsOptions
HttpsConnectionFilterOptions

Opsi untuk mengonfigurasi HTTPS.

Mengembalikan

The Microsoft.AspNetCore.Server.KestrelServerOptions.

Berlaku untuk

UseHttps(KestrelServerOptions, X509Certificate2)

Konfigurasikan Kestrel untuk menggunakan 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

Parameter

options
KestrelServerOptions

Microsoft.AspNetCore.Server.KestrelServerOptions untuk dikonfigurasi.

serverCertificate
X509Certificate2

Sertifikat X.509.

Mengembalikan

The Microsoft.AspNetCore.Server.KestrelServerOptions.

Berlaku untuk

UseHttps(KestrelServerOptions, String)

Konfigurasikan Kestrel untuk menggunakan 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

Parameter

options
KestrelServerOptions

Microsoft.AspNetCore.Server.KestrelServerOptions untuk dikonfigurasi.

fileName
String

Nama file sertifikat, relatif terhadap direktori yang berisi file konten aplikasi.

Mengembalikan

The Microsoft.AspNetCore.Server.KestrelServerOptions.

Berlaku untuk

UseHttps(KestrelServerOptions, String, String)

Konfigurasikan Kestrel untuk menggunakan 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

Parameter

options
KestrelServerOptions

Microsoft.AspNetCore.Server.KestrelServerOptions untuk dikonfigurasi.

fileName
String

Nama file sertifikat, relatif terhadap direktori yang berisi file konten aplikasi.

password
String

Kata sandi yang diperlukan untuk mengakses data sertifikat X.509.

Mengembalikan

The Microsoft.AspNetCore.Server.KestrelServerOptions.

Berlaku untuk