NetTcpBinding.CreateBindingElements 方法     
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为绑定创建一个绑定元素集合。
public:
 override System::ServiceModel::Channels::BindingElementCollection ^ CreateBindingElements();public override System.ServiceModel.Channels.BindingElementCollection CreateBindingElements ();override this.CreateBindingElements : unit -> System.ServiceModel.Channels.BindingElementCollectionPublic Overrides Function CreateBindingElements () As BindingElementCollection返回
组成绑定的 ICollection<T> 类型的 BindingElement。
示例
此示例演示如何使用 CreateBindingElements 方法创建包含绑定的绑定元素的集合。
BindingElementCollection elementCollection =
binding.CreateBindingElements();