Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
property PeerCredential^ Peer {
	PeerCredential^ 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.

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
Show:
© 2017 Microsoft