Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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
)

Parameters

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
Show:
© 2017 Microsoft