Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

AddressHeaderCollection Constructors

Definition

Namespace:
System.ServiceModel.Channels
Assemblies:
System.ServiceModel.dll, System.ServiceModel.Primitives.dll
Assembly:
System.ServiceModel.Primitives.dll
Assembly:
System.ServiceModel.dll
Package:
System.ServiceModel.Primitives v10.0.652802

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Initializes a new instance of the AddressHeaderCollection class.

Overloads

Name Description
AddressHeaderCollection()

Initializes a new instance of the AddressHeaderCollection class.

AddressHeaderCollection(IEnumerable<AddressHeader>)

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

AddressHeaderCollection()

Source:
AddressHeaderCollection.cs
Source:
AddressHeaderCollection.cs
Source:
AddressHeaderCollection.cs

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 parameterless constructor.

Applies to

AddressHeaderCollection(IEnumerable<AddressHeader>)

Source:
AddressHeaderCollection.cs
Source:
AddressHeaderCollection.cs
Source:
AddressHeaderCollection.cs

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


Feedback

Was this page helpful?