AddressHeaderCollection AddressHeaderCollection AddressHeaderCollection AddressHeaderCollection Constructors

Definition

Overloads

AddressHeaderCollection() AddressHeaderCollection() AddressHeaderCollection()

Initializes a new instance of the AddressHeaderCollection class.

AddressHeaderCollection(IEnumerable<AddressHeader>) AddressHeaderCollection(IEnumerable<AddressHeader>) AddressHeaderCollection(IEnumerable<AddressHeader>) AddressHeaderCollection(IEnumerable<AddressHeader>)

Initializes a new instance of the AddressHeaderCollection class from an enumerable set of address headers.

AddressHeaderCollection() AddressHeaderCollection() AddressHeaderCollection()

Initializes a new instance of the AddressHeaderCollection class.

public:
 AddressHeaderCollection();
public AddressHeaderCollection ();
Public Sub New ()

Examples

The following code snippet illustrates how to create an instance of AddressHeaderCollection class with the default constructor.

AddressHeaderCollection(IEnumerable<AddressHeader>) AddressHeaderCollection(IEnumerable<AddressHeader>) AddressHeaderCollection(IEnumerable<AddressHeader>) AddressHeaderCollection(IEnumerable<AddressHeader>)

Initializes a new instance of the AddressHeaderCollection class from an enumerable set of address headers.

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))

Parameters

addressHeaders
IEnumerable<AddressHeader>

The IEnumerable<T> set of AddressHeader objects used to initialize the collection.

Exceptions

One of the address headers in the addressHeaders parameter is null.

Examples

The following code snippet illustrates how to create an instance of AddressHeaderCollection class.

Applies to