共用方式為


NetTcpBinding.CreateBindingElements 方法

定義

建立含有繫結之繫結項目的集合。

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

傳回

組成繫結且型別為 ICollection<T>BindingElement

範例

此範例示範如何使用 CreateBindingElements 方法來建立具有系結之繫結項目的集合。

BindingElementCollection elementCollection =
binding.CreateBindingElements();

適用於