Specifies whether transport-level security is used with named pipes.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Indicates no security is used with the named pipe 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 .
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");
Available since 3.0