NetTcpSecurity.Mode Property

Definition

Gets or sets whether message-level security and transport-level security are used by an endpoint configured with a NetTcpBinding.

C#
public System.ServiceModel.SecurityMode Mode { get; set; }

Property Value

A value of the SecurityMode that indicates whether message-level security or transport-level security is used by an endpoint. The default value is Transport.

Exceptions

The value is not defined.

Examples

C#
NetTcpSecurity security = binding.Security;
Console.WriteLine("\tSecurity Mode: {0}", security.Mode);

Remarks

The security mode determines the type of security required by an endpoint. Windows Communication Foundation (WCF) security offers a variety of mechanisms with which to secure the transfer of messages that are configured with the system-provided bindings. Each of the bindings supports a subset of these security modes. The mode determines the mechanisms by which message transfer security functions (integrity, confidentiality and authentication) are required.

Applies to

Product Versions
.NET Core 1.0, Core 1.1, 8 (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 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
UWP 10.0