語言

StreamSocketControl.IgnorableServerCertificateErrors 屬性

定義

取得一個 SSL 伺服器錯誤向量,讓它在使用 StreamSocket 進行 SSL 連線時可以忽略。

public:
 property IVector<ChainValidationResult> ^ IgnorableServerCertificateErrors { IVector<ChainValidationResult> ^ get(); };
IVector<ChainValidationResult> IgnorableServerCertificateErrors();
public IList<ChainValidationResult> IgnorableServerCertificateErrors { get; }
var iVector = streamSocketControl.ignorableServerCertificateErrors;
Public ReadOnly Property IgnorableServerCertificateErrors As IList(Of ChainValidationResult)

屬性值

這是一連串可以忽略的 SSL 伺服器錯誤向量。

備註

IgnorableServerCertificateErrors 屬性會取得 ChainValidationResult 枚舉值向量,以忽略 SSL 伺服器錯誤。

SSL 伺服器錯誤只有在進階情境下才應該忽略。 忽略伺服器憑證錯誤可能導致透過 SSL 會話傳遞內容的隱私或完整性喪失。

適用於

另請參閱