NetTcpSecurity::Message Property
Gets the type of message-level security requirements for a service configured with a NetTcpBinding.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public: property MessageSecurityOverTcp^ Message { MessageSecurityOverTcp^ get(); void set(MessageSecurityOverTcp^ value); }
Property Value
Type: System.ServiceModel::MessageSecurityOverTcp^The MessageSecurityOverTcp that indicates the type of message-level security requirements for an endpoint.
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.
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);
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms