NamedPipeTransportBindingElement 构造函数

定义

初始化 NamedPipeTransportBindingElement 类的新实例。

重载

NamedPipeTransportBindingElement()

初始化 NamedPipeTransportBindingElement 类的新实例。

NamedPipeTransportBindingElement(NamedPipeTransportBindingElement)

初始化 NamedPipeTransportBindingElement 类的新实例。

NamedPipeTransportBindingElement()

Source:
NamedPipeTransportBindingElement.cs
Source:
NamedPipeTransportBindingElement.cs
Source:
NamedPipeTransportBindingElement.cs

初始化 NamedPipeTransportBindingElement 类的新实例。

public:
 NamedPipeTransportBindingElement();
public NamedPipeTransportBindingElement ();
Public Sub New ()

示例

此示例演示如何使用无参数构造函数:

NamedPipeTransportBindingElement bElement =
    new NamedPipeTransportBindingElement();
Dim bElement As New NamedPipeTransportBindingElement()

适用于

NamedPipeTransportBindingElement(NamedPipeTransportBindingElement)

Source:
NamedPipeTransportBindingElement.cs
Source:
NamedPipeTransportBindingElement.cs
Source:
NamedPipeTransportBindingElement.cs

初始化 NamedPipeTransportBindingElement 类的新实例。

protected:
 NamedPipeTransportBindingElement(System::ServiceModel::Channels::NamedPipeTransportBindingElement ^ elementToBeCloned);
protected NamedPipeTransportBindingElement (System.ServiceModel.Channels.NamedPipeTransportBindingElement elementToBeCloned);
new System.ServiceModel.Channels.NamedPipeTransportBindingElement : System.ServiceModel.Channels.NamedPipeTransportBindingElement -> System.ServiceModel.Channels.NamedPipeTransportBindingElement
Protected Sub New (elementToBeCloned As NamedPipeTransportBindingElement)

参数

示例

此示例演示如何初始化该类的新实例:

NamedPipeTransportBindingElement bElement =
    new NamedPipeTransportBindingElement();

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

Dim connectionPoolSettings As NamedPipeConnectionPoolSettings = bElement.ConnectionPoolSettings

注解

此方法是用于克隆绑定元素的复制构造函数,并且是公开的,因此派生类可以实现 Clone

适用于