AddressHeaderCollection 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 AddressHeaderCollection 类的新实例。
重载
| 名称 | 说明 |
|---|---|
| AddressHeaderCollection() |
初始化 AddressHeaderCollection 类的新实例。 |
| AddressHeaderCollection(IEnumerable<AddressHeader>) |
从可枚举的地址标头集初始化类的新实例 AddressHeaderCollection 。 |
AddressHeaderCollection()
- Source:
- AddressHeaderCollection.cs
- Source:
- AddressHeaderCollection.cs
- Source:
- AddressHeaderCollection.cs
初始化 AddressHeaderCollection 类的新实例。
public:
AddressHeaderCollection();
public AddressHeaderCollection();
Public Sub New ()
示例
以下代码片段演示如何使用无参数构造函数创建类的 AddressHeaderCollection 实例。
适用于
AddressHeaderCollection(IEnumerable<AddressHeader>)
- Source:
- AddressHeaderCollection.cs
- Source:
- AddressHeaderCollection.cs
- Source:
- AddressHeaderCollection.cs
从可枚举的地址标头集初始化类的新实例 AddressHeaderCollection 。
public:
AddressHeaderCollection(System::Collections::Generic::IEnumerable<System::ServiceModel::Channels::AddressHeader ^> ^ addressHeaders);
public AddressHeaderCollection(System.Collections.Generic.IEnumerable<System.ServiceModel.Channels.AddressHeader> addressHeaders);
new System.ServiceModel.Channels.AddressHeaderCollection : seq<System.ServiceModel.Channels.AddressHeader> -> System.ServiceModel.Channels.AddressHeaderCollection
Public Sub New (addressHeaders As IEnumerable(Of AddressHeader))
参数
- addressHeaders
- IEnumerable<AddressHeader>
IEnumerable<T>用于初始化集合的对象集AddressHeader。
例外
参数中的 addressHeaders 一个地址标头是 null。
示例
以下代码片段演示如何创建类的 AddressHeaderCollection 实例。