PeerCredential.Certificate 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定對等的 X509 憑證。
public:
property System::Security::Cryptography::X509Certificates::X509Certificate2 ^ Certificate { System::Security::Cryptography::X509Certificates::X509Certificate2 ^ get(); void set(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ value); };
public System.Security.Cryptography.X509Certificates.X509Certificate2 Certificate { get; set; }
member this.Certificate : System.Security.Cryptography.X509Certificates.X509Certificate2 with get, set
Public Property Certificate As X509Certificate2
屬性值
用於對等的 X509 憑證。
備註
這個屬性包含 X509Certificate2 執行個體,在驗證對等網狀結構中的鄰居時會使用這個執行個體。 如果選擇的認證類型為 PeerTransportCredentialType.Certificate,則必須指定一個執行個體。 如果為 Peertransportcredentialtype.,則為。Password 選擇這個屬性是選擇性的。