ClientCredentials.Peer Property


Controls the credentials that a peer node uses to authenticate itself to other nodes in the mesh, as well as authentication settings that a peer node uses to authenticate other peer nodes.

Namespace:   System.ServiceModel.Description
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public PeerCredential Peer { get; }

Property Value

Type: System.ServiceModel.Security.PeerCredential

A PeerCredential that represents the current peer credential.

You can use the object returned by this property to configure the credential by calling its members, such as Certificate, MeshPassword, MessageSenderAuthentication, and PeerAuthentication.

Legacy Code Example

The following code shows how to access this property.

public void snippet26(CalculatorClient client)
    PeerCredential peercred = client.ClientCredentials.Peer;

.NET Framework
Available since 3.0
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft