NetTcpSecurity.Message NetTcpSecurity.Message NetTcpSecurity.Message NetTcpSecurity.Message Property


Gets the type of message-level security requirements for a service configured with a NetTcpBinding.

 property System::ServiceModel::MessageSecurityOverTcp ^ Message { System::ServiceModel::MessageSecurityOverTcp ^ get(); void set(System::ServiceModel::MessageSecurityOverTcp ^ value); };
public System.ServiceModel.MessageSecurityOverTcp Message { get; set; }
member this.Message : System.ServiceModel.MessageSecurityOverTcp with get, set
Public Property Message As MessageSecurityOverTcp

Property Value

The MessageSecurityOverTcp that indicates the type of message-level security requirements for an endpoint.


NetTcpSecurity security = binding.Security;
MessageSecurityOverTcp msTcp = security.Message;

Console.WriteLine("Dumping NetTcpSecurity object:");
Console.WriteLine("\t\tAlgorithm Suite: {0}", msTcp.AlgorithmSuite);
Console.WriteLine("\t\tClient Credential Type: {0}", msTcp.ClientCredentialType);


Message uses message-level security for the integrity and confidentiality of the SOAP message and for mutual authentication of the communication peers. If this security mode is selected on a binding, the channel stack is configured with message security binding elements and the SOAP messages are secured in compliance with WS-Security* standards.

Applies to