AddressHeaderCollection Constructor (IEnumerable(AddressHeader))
Collapse the table of content
Expand the table of content

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.

Namespace:  System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public AddressHeaderCollection(
	IEnumerable<AddressHeader> addressHeaders
)

Parameters

addressHeaders
Type: System.Collections.Generic.IEnumerable<AddressHeader>
The IEnumerable<T> set of AddressHeader objects used to initialize the collection.

ExceptionCondition
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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft