共用方式為


KestrelServerOptions.ConfigureHttpsDefaults 方法

定義

指定要針對每個新建立的 HTTPs 端點執行的組態動作。 再次呼叫此動作將會取代先前的動作。

public:
 void ConfigureHttpsDefaults(Action<Microsoft::AspNetCore::Server::Kestrel::Https::HttpsConnectionAdapterOptions ^> ^ configureOptions);
public void ConfigureHttpsDefaults (Action<Microsoft.AspNetCore.Server.Kestrel.Https.HttpsConnectionAdapterOptions> configureOptions);
member this.ConfigureHttpsDefaults : Action<Microsoft.AspNetCore.Server.Kestrel.Https.HttpsConnectionAdapterOptions> -> unit
Public Sub ConfigureHttpsDefaults (configureOptions As Action(Of HttpsConnectionAdapterOptions))

參數

適用於