NamedPipeTransportBindingElement.Clone 方法

定义

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

public:
 override System::ServiceModel::Channels::BindingElement ^ Clone();
public override System.ServiceModel.Channels.BindingElement Clone ();
override this.Clone : unit -> System.ServiceModel.Channels.BindingElement
Public Overrides Function Clone () As BindingElement

返回

返回当前绑定元素的副本。

示例

此示例演示如何创建当前绑定元素的副本:

BindingElement bElementCopy =
    bElement.Clone();
Dim bElementCopy As BindingElement = bElement.Clone()

适用于