Editare

Partajați prin


ClientCredentials.Peer Property

Definition

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.

public:
 property System::ServiceModel::Security::PeerCredential ^ Peer { System::ServiceModel::Security::PeerCredential ^ get(); };
public System.ServiceModel.Security.PeerCredential Peer { get; }
member this.Peer : System.ServiceModel.Security.PeerCredential
Public ReadOnly Property Peer As PeerCredential

Property Value

A PeerCredential that represents the current peer credential.

Examples

The following code shows how to access this property.

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

Remarks

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

Applies to