NetNamedPipeSecurityMode Enumeration
TOC
Collapse the table of content
Expand the table of content

NetNamedPipeSecurityMode Enumeration

 

Specifies whether transport-level security is used with named pipes.

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

public enum NetNamedPipeSecurityMode

Member nameDescription
None

Indicates no security is used with the named pipe transport.

Transport

Indicates that transport-level security is used with the named pipe transport.

Use this enumeration to specify whether transport-level security is used with named pipes when using the NetNamedPipeBinding. The default value is Transport.

NetNamedPipeBinding nnpb = new NetNamedPipeBinding();
NetNamedPipeSecurity nnpSecurity = nnpb.Security;
nnpSecurity.Mode = NetNamedPipeSecurityMode.Transport;
NamedPipeTransportSecurity npts = nnpSecurity.Transport;
serviceHost.AddServiceEndpoint(typeof(ICalculator), nnpb, "net.pipe://localhost/ServiceModelSamples/Service");

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft