NamedPipeTransportBindingElement 类

定义

表示命名管道传输的绑定元素。

public ref class NamedPipeTransportBindingElement : System::ServiceModel::Channels::ConnectionOrientedTransportBindingElement
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public class NamedPipeTransportBindingElement : System.ServiceModel.Channels.ConnectionOrientedTransportBindingElement
public class NamedPipeTransportBindingElement : System.ServiceModel.Channels.ConnectionOrientedTransportBindingElement
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
type NamedPipeTransportBindingElement = class
    inherit ConnectionOrientedTransportBindingElement
type NamedPipeTransportBindingElement = class
    inherit ConnectionOrientedTransportBindingElement
Public Class NamedPipeTransportBindingElement
Inherits ConnectionOrientedTransportBindingElement
继承
属性

示例

此示例演示如何使用此类:

NamedPipeTransportBindingElement bElement =
    new NamedPipeTransportBindingElement();

NamedPipeConnectionPoolSettings connectionPoolSettings =
    bElement.ConnectionPoolSettings;
Dim bElement As New NamedPipeTransportBindingElement()

Dim connectionPoolSettings As NamedPipeConnectionPoolSettings = bElement.ConnectionPoolSettings

注解

此传输使用格式为“net.pipe://hostname/path”的 URI。 其他 URI 组件是可选的。

NamedPipeTransportBindingElement 类是创建实现命名管道传输协议的自定义绑定的起始点。 此传输用于计算机 WCF 通信。

WCF 服务模型使用此类创建实现 和 IChannelListener 接口的IChannelFactory工厂对象。 之后,这些工厂对象创建并接受使用命名管道协议传输 SOAP 消息的通道。

您通过设置此类的属性配置此类创建的工厂,例如 ConnectionPoolSettings

还可以设置基类 ConnectionOrientedTransportBindingElement 上的属性,例如:MaxBufferSizeTransferModeConnectionBufferSize。 有关完整的属性列表,请参见 ConnectionOrientedTransportBindingElement

最后,您还可以设置 ConnectionOrientedTransportBindingElement 的基类(即 TransportBindingElement)上的属性,例如 MaxBufferPoolSize。 有关完整的属性列表,请参见 TransportBindingElement

构造函数

NamedPipeTransportBindingElement()

初始化 NamedPipeTransportBindingElement 类的新实例。

NamedPipeTransportBindingElement(NamedPipeTransportBindingElement)

初始化 NamedPipeTransportBindingElement 类的新实例。

属性

AllowedSecurityIdentifiers

获取允许的 SecurityIdentifier 实例的集合。

ChannelInitializationTimeout

获取或设置确定通道在断开连接前可处于初始化状态的最长时间的 TimeSpan

(继承自 ConnectionOrientedTransportBindingElement)
ConnectionBufferSize

获取或设置用于从客户端或服务传输网络上的序列化消息块的缓冲区大小。

(继承自 ConnectionOrientedTransportBindingElement)
ConnectionPoolSettings

获取连接池设置的集合。

HostNameComparisonMode

获取或设置一个值,该值指示在对 URI 进行匹配时,是否使用主机名来访问服务。

(继承自 ConnectionOrientedTransportBindingElement)
ManualAddressing

获取或设置一个值,该值指示是否要求对消息进行手动寻址。

(继承自 TransportBindingElement)
MaxBufferPoolSize

获取或设置传输消息使用的任何缓冲池的最大字节大小。

(继承自 TransportBindingElement)
MaxBufferSize

获取或设置要使用的缓冲区的最大大小。 对于经过流处理的消息,该值最少应为以缓冲模式读取的消息头的最大可能大小。

(继承自 ConnectionOrientedTransportBindingElement)
MaxOutputDelay

获取或设置消息块或完整消息在发出之前可以在内存中保持缓冲的最大时间间隔。

(继承自 ConnectionOrientedTransportBindingElement)
MaxPendingAccepts

获取或设置服务可等待许可证处理至服务的传入连接的最大通道数量。

(继承自 ConnectionOrientedTransportBindingElement)
MaxPendingConnections

获取或设置在服务上等待调度的最大连接数。

(继承自 ConnectionOrientedTransportBindingElement)
MaxReceivedMessageSize

获取或设置能接收的最大可允许消息大小(以字节为单位)。

(继承自 TransportBindingElement)
PipeSettings

获取命名管道传输绑定元素的管道设置。

Scheme

返回传输的 URI 方案。

TransferMode

获取或设置一个值,该值指示通过面向连接的传输对消息进行缓冲还是流处理。

(继承自 ConnectionOrientedTransportBindingElement)

方法

BuildChannelFactory<TChannel>(BindingContext)

创建指定类型的可用于创建通道的通道工厂。

BuildChannelListener<TChannel>(BindingContext)

创建指定类型的通道侦听器。

BuildChannelListener<TChannel>(BindingContext)

初始化通道侦听器,用于接受绑定上下文中指定类型的通道。

(继承自 BindingElement)
CanBuildChannelFactory<TChannel>(BindingContext)

确定是否可生成指定类型的通道工厂。

(继承自 ConnectionOrientedTransportBindingElement)
CanBuildChannelListener<TChannel>(BindingContext)

确定是否可生成指定类型的通道侦听器。

(继承自 ConnectionOrientedTransportBindingElement)
Clone()

创建当前绑定元素的副本。

Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetProperty<T>(BindingContext)

BindingContext 中获取指定的对象。

GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
ShouldSerializeMaxPendingAccepts()

指示连接针对的传输绑定元素是否应序列化最长等待接受。

(继承自 ConnectionOrientedTransportBindingElement)
ShouldSerializeMaxPendingConnections()

指示连接针对的传输绑定元素是否应序列化最长等待连接。

(继承自 ConnectionOrientedTransportBindingElement)
ToString()

返回表示当前对象的字符串。

(继承自 Object)

显式接口实现

IPolicyExportExtension.ExportPolicy(MetadataExporter, PolicyConversionContext)

导出有关绑定的自定义策略断言。

(继承自 ConnectionOrientedTransportBindingElement)
IWsdlExportExtension.ExportContract(WsdlExporter, WsdlContractConversionContext)

为协定将自定义 Web 服务描述语言 (WSDL) 元素写入到生成的 WSDL 中。

(继承自 ConnectionOrientedTransportBindingElement)
IWsdlExportExtension.ExportEndpoint(WsdlExporter, WsdlEndpointConversionContext)

为终结点将自定义 Web 服务描述语言 (WSDL) 元素写入到生成的 WSDL 中。

(继承自 ConnectionOrientedTransportBindingElement)

适用于