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

属性值

对等类的 X509 证书。

注解

此属性包含一个 X509Certificate2 实例,在对等网格中对邻居进行身份验证时,将使用此实例。 如果选择的凭据类型为 PeerTransportCredentialType.Certificate,则必须指定实例。 如果 PeerTransportCredentialType。Password 选择此属性,此属性是可选的。

适用于