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 选择此属性,此属性是可选的。