ClientCredentials.Peer Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應