StreamSocketControl.IgnorableServerCertificateErrors 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得一個 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 會話傳遞內容的隱私或完整性喪失。