PeerCredential.Certificate 属性
定义
获取或设置对等方的 X509 证书。Gets or sets an X509 certificate for the peer.
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 证书。The X509 certificate for the peer.
注解
此属性包含一个 X509Certificate2 实例,在对等网格中对邻居进行身份验证时,将使用此实例。This property contains a X509Certificate2 instance used when authenticating neighbors in the peer mesh. 如果选择的凭据类型为 PeerTransportCredentialType.Certificate,则必须指定实例。An instance must be specified if the credential type chosen is PeerTransportCredentialType.Certificate. 如果为 PeerTransportCredentialType。PasswordIf PeerTransportCredentialType.Password 选择此属性是可选的。is chosen, this property is optional.