AddressHeaderCollection Constructor (IEnumerable<AddressHeader>)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Initializes a new instance of the AddressHeaderCollection class from an enumerable set of address headers.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Parameters
- addressHeaders
- Type: System.Collections.Generic.IEnumerable<AddressHeader>
The IEnumerable<T> set of AddressHeader objects used to initialize the collection.
| Exception | Condition |
|---|---|
| ArgumentException | One of the address headers in the addressHeaders parameter is null. |
The following code snippet illustrates how to create an instance of AddressHeaderCollection class.
Show: