共用方式為


SslStream.NegotiateClientCertificateAsync(CancellationToken) 方法

定義

交涉已驗證連線上的客戶端憑證。

public virtual System.Threading.Tasks.Task NegotiateClientCertificateAsync (System.Threading.CancellationToken cancellationToken = default);
[System.Runtime.Versioning.SupportedOSPlatform("freebsd")]
[System.Runtime.Versioning.SupportedOSPlatform("linux")]
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public virtual System.Threading.Tasks.Task NegotiateClientCertificateAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member NegotiateClientCertificateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.NegotiateClientCertificateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
[<System.Runtime.Versioning.SupportedOSPlatform("freebsd")>]
[<System.Runtime.Versioning.SupportedOSPlatform("linux")>]
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
abstract member NegotiateClientCertificateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.NegotiateClientCertificateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function NegotiateClientCertificateAsync (Optional cancellationToken As CancellationToken = Nothing) As Task

參數

cancellationToken
CancellationToken

用來監視是否有取消要求的語彙基元。

傳回

工作物件,表示非同步作業。

屬性

例外狀況

取消令牌已取消。 此例外狀況會儲存在傳回的工作中。

備註

一旦透過其中 AuthenticateAs... 一種方法成功處理驗證,您就可以交涉客戶端憑證。

適用於