共用方式為


PeerCredential.Certificate 屬性

定義

取得或設定對等的 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

屬性值

X509Certificate2

用於對等的 X509 憑證。

備註

這個屬性包含 X509Certificate2 執行個體,在驗證對等網狀結構中的鄰居時會使用這個執行個體。 如果選擇的認證類型為 PeerTransportCredentialType.Certificate,則必須指定一個執行個體。 如果為 Peertransportcredentialtype.,則為。Password 選擇這個屬性是選擇性的。

適用於