KestrelServerOptionsHttpsExtensions.UseHttps Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
UseHttps(KestrelServerOptions, HttpsConnectionFilterOptions) |
Configura Kestrel per l'uso di HTTPS. |
UseHttps(KestrelServerOptions, X509Certificate2) |
Configura Kestrel per l'uso di HTTPS. |
UseHttps(KestrelServerOptions, String) |
Configura Kestrel per l'uso di HTTPS. |
UseHttps(KestrelServerOptions, String, String) |
Configura Kestrel per l'uso di HTTPS. |
UseHttps(KestrelServerOptions, HttpsConnectionFilterOptions)
Configura Kestrel per l'uso di 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
Parametri
- options
- KestrelServerOptions
Microsoft.AspNetCore.Server.KestrelServerOptions da configurare.
- httpsOptions
- HttpsConnectionFilterOptions
Opzioni per configurare HTTPS.
Restituisce
The Microsoft.AspNetCore.Server.KestrelServerOptions.
Si applica a
UseHttps(KestrelServerOptions, X509Certificate2)
Configura Kestrel per l'uso di 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
Parametri
- options
- KestrelServerOptions
Microsoft.AspNetCore.Server.KestrelServerOptions da configurare.
- serverCertificate
- X509Certificate2
Certificato X.509.
Restituisce
The Microsoft.AspNetCore.Server.KestrelServerOptions.
Si applica a
UseHttps(KestrelServerOptions, String)
Configura Kestrel per l'uso di 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
Parametri
- options
- KestrelServerOptions
Microsoft.AspNetCore.Server.KestrelServerOptions da configurare.
- fileName
- String
Nome di un file di certificato, relativo alla directory che contiene i file di contenuto dell'applicazione.
Restituisce
The Microsoft.AspNetCore.Server.KestrelServerOptions.
Si applica a
UseHttps(KestrelServerOptions, String, String)
Configura Kestrel per l'uso di 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
Parametri
- options
- KestrelServerOptions
Microsoft.AspNetCore.Server.KestrelServerOptions da configurare.
- fileName
- String
Nome di un file di certificato, relativo alla directory che contiene i file di contenuto dell'applicazione.
- password
- String
Password necessaria per accedere ai dati del certificato X.509.
Restituisce
The Microsoft.AspNetCore.Server.KestrelServerOptions.