NetNamedPipeSecurityMode Enumeration
.NET Framework (current version)
Specifies whether transport-level security is used with named pipes.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
| Member name | Description | |
|---|---|---|
| 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
Available since 3.0
Show: