PeerContact.Credentials Property

 

Gets or sets the X509Certificate (public key) for the peer identified by this PeerContact instance.

Namespace:   System.Net.PeerToPeer.Collaboration
Assembly:  System.Net (in System.Net.dll)

public X509Certificate2 Credentials { get; internal set; }

Property Value

Type: System.Security.Cryptography.X509Certificates.X509Certificate2

The X509Certificate (public key) for the peer identified by this PeerContact instance. The default value for this property is null.

Exception Condition
ObjectDisposedException

This PeerContact object has been disposed.

Calling this method requires a PermissionState of Unrestricted. This state is created when the peer collaboration session begins.

.NET Framework
Available since 3.5
Return to top
Show: