PeerContact.Credentials 属性

定义

获取或设置由此 PeerContact 实例标识的对等方的 X509Certificate(公钥)。

public:
 property System::Security::Cryptography::X509Certificates::X509Certificate2 ^ Credentials { System::Security::Cryptography::X509Certificates::X509Certificate2 ^ get(); };
public System.Security.Cryptography.X509Certificates.X509Certificate2 Credentials { get; }
member this.Credentials : System.Security.Cryptography.X509Certificates.X509Certificate2
Public ReadOnly Property Credentials As X509Certificate2

属性值

由此 PeerContact 实例标识的对等方的 X509Certificate(公钥)。 此属性的默认值为 null

例外

已释放 PeerContact 对象。

注解

调用此方法需要 PermissionStateUnrestricted。 此状态是在对等协作会话开始时创建的。

适用于

另请参阅