PeerContact.Credentials 屬性

定義

取得或設定由這個 PeerContact 執行個體所識別之對等電腦的 X509Certificate (公開金鑰 (Public Key))。

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。 當對等共同作業會話開始時,就會建立此狀態。

適用於

另請參閱