NetNamedPipeSecurity 类

定义

对使用命名管道绑定配置的终结点提供对安全设置的访问权限。Provides access to the security settings for endpoints configured with the named pipe binding.

public ref class NetNamedPipeSecurity sealed
public sealed class NetNamedPipeSecurity
type NetNamedPipeSecurity = class
Public NotInheritable Class NetNamedPipeSecurity
继承
NetNamedPipeSecurity

示例

下面的代码演示如何将 NetNamedPipeSecurity 对象添加到 NetNamedPipeBinding 实例中。The following code shows how to add a NetNamedPipeSecurity object to a NetNamedPipeBinding instance.

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");

构造函数

NetNamedPipeSecurity()

初始化 NetNamedPipeSecurity 类的新实例。Initializes a new instance of the NetNamedPipeSecurity class.

属性

Mode

获取或设置命名管道绑定的安全代码。Gets or sets the security mode for the named pipe binding.

Transport

获取命名管道绑定的传输安全性。Gets the transport security for the named pipe binding.

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ShouldSerializeTransport()

返回一个值,该值指示 Transport 属性是否已更改,不再是默认值且应对其进行序列化。Returns a value that indicates whether the Transport property has changed from its default value and should be serialized. WCF 使用此项进行 XAML 集成。This is used by WCF for XAML integration.

ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于