Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
NetNamedPipeSecurityMode Enumeration
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
NoneIndicates no security is used with the named pipe transport.
TransportIndicates 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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft