NetNamedPipeBinding Constructor (NetNamedPipeSecurityMode)


Initializes a new instance of the NetNamedPipeBinding class with a specified security mode.

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

public NetNamedPipeBinding(
	NetNamedPipeSecurityMode securityMode


Type: System.ServiceModel.NetNamedPipeSecurityMode

The NetNamedPipeSecurityMode value that specifies whether Windows security is used with named pipes.

Use this constructor when you want to configure the security explicitly. The default is Transport when using the default constructor.

Uri baseAddress = new Uri("http://localhost:8000/uesamples/service");

ServiceHost serviceHost = new ServiceHost(typeof(CalculatorService), baseAddress);
NetNamedPipeBinding binding = new NetNamedPipeBinding(NetNamedPipeSecurityMode.None);

.NET Framework
Available since 3.0
Return to top