語言

StreamWebSocketInformation.ServerIntermediateCertificates 屬性

定義

在與 StreamWebSocket 伺服器建立 SSL 連線時,接收伺服器在 SSL 協商時所傳送的中介憑證。

public:
 property IVectorView<Certificate ^> ^ ServerIntermediateCertificates { IVectorView<Certificate ^> ^ get(); };
IVectorView<Certificate> ServerIntermediateCertificates();
public IReadOnlyList<Certificate> ServerIntermediateCertificates { get; }
var iVectorView = streamWebSocketInformation.serverIntermediateCertificates;
Public ReadOnly Property ServerIntermediateCertificates As IReadOnlyList(Of Certificate)

屬性值

伺服器在 SSL 協商期間所傳送的憑證集合。

實作

Windows 需求

規格需求 Description
裝置系列
Windows 10 Anniversary Edition (已於 10.0.14393.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v3.0 引進)

備註

此屬性會回傳與 WebSockets 伺服器建立 SSL 連線時所使用的中介伺服器憑證。 這些憑證由伺服器在 SSL 連線協商時提供。 回傳向量中 憑證物件的 屬性可用來取得憑證的詳細資訊。

當透過此屬性取得中介憑證清單時,SSL 連線已經建立。 如果你想在連線過程中檢查伺服器憑證以執行自訂驗證,你應該註冊一個 StreamWebSocket.ServerCustomValidationRequested 事件的處理程序,並在該處理程序中執行自訂伺服器驗證,使用傳給事件處理程序的 WebSocketServerCustomValidationRequestedEventArgs 實例來檢查中間憑證。

適用於