NetTcpSecurity.Message Property

Definition

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

C#
public System.ServiceModel.MessageSecurityOverTcp Message { get; set; }
C#
public System.ServiceModel.MessageSecurityOverTcp Message { get; }

Property Value

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

Examples

C#
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.

Applies to

Product Versions
.NET Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
UWP 10.0