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 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈