語言

PeerContact.Credentials 屬性

定義

取得或設定 X509Certificate(公鑰)給由此 PeerContact 實例識別的對等端。

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 物已被處理。

備註

呼叫此方法需要一個 PermissionState 。Unrestricted 此狀態是在對等協作會話開始時建立的。

適用於

另請參閱