NetNamedPipeSecurityMode 枚举

定义

指定是否将传输层安全性与命名管道一起使用。Specifies whether transport-level security is used with named pipes.

public enum class NetNamedPipeSecurityMode
public enum NetNamedPipeSecurityMode
type NetNamedPipeSecurityMode = 
Public Enum NetNamedPipeSecurityMode
继承
NetNamedPipeSecurityMode

字段

None 0

指示未将安全性与命名管道传输一起使用。Indicates no security is used with the named pipe transport.

Transport 1

指示已将传输层安全性与命名管道传输一起使用。Indicates that transport-level security is used with the named pipe 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");

注解

使用此枚举指定是否在使用 NetNamedPipeBinding 时将传输层安全性与命名管道一起使用。Use this enumeration to specify whether transport-level security is used with named pipes when using the NetNamedPipeBinding. 默认值为 Transport。The default value is Transport.

适用于