NetTcpSecurity.Message 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.
Gets the type of message-level security requirements for a service configured with a NetTcpBinding.
public:
 property System::ServiceModel::MessageSecurityOverTcp ^ Message { System::ServiceModel::MessageSecurityOverTcp ^ get(); void set(System::ServiceModel::MessageSecurityOverTcp ^ value); };public:
 property System::ServiceModel::MessageSecurityOverTcp ^ Message { System::ServiceModel::MessageSecurityOverTcp ^ get(); };public System.ServiceModel.MessageSecurityOverTcp Message { get; set; }public System.ServiceModel.MessageSecurityOverTcp Message { get; }member this.Message : System.ServiceModel.MessageSecurityOverTcp with get, setmember this.Message : System.ServiceModel.MessageSecurityOverTcpPublic Property Message As MessageSecurityOverTcpPublic ReadOnly Property Message As MessageSecurityOverTcpProperty Value
The MessageSecurityOverTcp that indicates the type of message-level security requirements for an endpoint.
Examples
NetTcpSecurity security = binding.Security;
MessageSecurityOverTcp msTcp = security.Message;
Console.WriteLine("Dumping NetTcpSecurity object:");
Console.WriteLine("\tMessageSecurityOverTcp:");
Console.WriteLine("\t\tAlgorithm Suite: {0}", msTcp.AlgorithmSuite);
Console.WriteLine("\t\tClient Credential Type: {0}", msTcp.ClientCredentialType);
Remarks
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.