BindingElementCollection 构造函数
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 BindingElementCollection 类的新实例。
BindingElementCollection() |
初始化 BindingElementCollection 类的新实例。 |
BindingElementCollection(IEnumerable<BindingElement>) |
使用绑定元素的可枚举集初始化 BindingElementCollection 类的新实例。 |
BindingElementCollection(BindingElement[]) |
使用一个绑定元素数组初始化 BindingElementCollection 类的新实例。 |
- Source:
- BindingElementCollection.cs
初始化 BindingElementCollection 类的新实例。
public:
BindingElementCollection();
public BindingElementCollection ();
Public Sub New ()
适用于
.NET 8 (package-provided) 和其他版本
产品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
UWP | 10.0 |
- Source:
- BindingElementCollection.cs
使用绑定元素的可枚举集初始化 BindingElementCollection 类的新实例。
public:
BindingElementCollection(System::Collections::Generic::IEnumerable<System::ServiceModel::Channels::BindingElement ^> ^ elements);
public BindingElementCollection (System.Collections.Generic.IEnumerable<System.ServiceModel.Channels.BindingElement> elements);
new System.ServiceModel.Channels.BindingElementCollection : seq<System.ServiceModel.Channels.BindingElement> -> System.ServiceModel.Channels.BindingElementCollection
Public Sub New (elements As IEnumerable(Of BindingElement))
参数
- elements
- IEnumerable<BindingElement>
泛型类型 IEnumerable<T> 的 BindingElement,用于初始化集合。
例外
elements
为 null
。
适用于
.NET 8 (package-provided) 和其他版本
产品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
UWP | 10.0 |
- Source:
- BindingElementCollection.cs
使用一个绑定元素数组初始化 BindingElementCollection 类的新实例。
public:
BindingElementCollection(cli::array <System::ServiceModel::Channels::BindingElement ^> ^ elements);
public BindingElementCollection (System.ServiceModel.Channels.BindingElement[] elements);
new System.ServiceModel.Channels.BindingElementCollection : System.ServiceModel.Channels.BindingElement[] -> System.ServiceModel.Channels.BindingElementCollection
Public Sub New (elements As BindingElement())
参数
- elements
- BindingElement[]
类型为 Array 的 BindingElement,用于初始化集合。
例外
elements
为 null
。
适用于
.NET 8 (package-provided) 和其他版本
产品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
UWP | 10.0 |