NetNamedPipeSecurity.Mode Property


Gets or sets the security mode for the named pipe binding.

Namespace:   System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public NetNamedPipeSecurityMode Mode { get; set; }

Property Value

Type: System.ServiceModel.NetNamedPipeSecurityMode

The value of the NetNamedPipeSecurityMode for the named pipe binding. The default value is Transport.

Valid values for this property are:

  • Transport - Use transport-based security. The default setting uses NTLM which does not provide server authentication.

  • None - Use no security.

The following code shows how to set the Mode property:

nnpSecurity.Mode = NetNamedPipeSecurityMode.Transport;

.NET Framework
Available since 3.0
Return to top