Share via


AddressHeaderCollection Konstruktory

Definice

Inicializuje novou instanci AddressHeaderCollection třídy .

Přetížení

AddressHeaderCollection()

Inicializuje novou instanci AddressHeaderCollection třídy .

AddressHeaderCollection(IEnumerable<AddressHeader>)

Inicializuje novou instanci AddressHeaderCollection třídy z výčtu množiny hlaviček adres.

AddressHeaderCollection()

Zdroj:
AddressHeaderCollection.cs
Zdroj:
AddressHeaderCollection.cs
Zdroj:
AddressHeaderCollection.cs

Inicializuje novou instanci AddressHeaderCollection třídy .

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

Příklady

Následující fragment kódu ukazuje, jak vytvořit instanci AddressHeaderCollection třídy s konstruktorem bez parametrů.

Platí pro

AddressHeaderCollection(IEnumerable<AddressHeader>)

Zdroj:
AddressHeaderCollection.cs
Zdroj:
AddressHeaderCollection.cs
Zdroj:
AddressHeaderCollection.cs

Inicializuje novou instanci AddressHeaderCollection třídy z výčtu množiny hlaviček adres.

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

Parametry

addressHeaders
IEnumerable<AddressHeader>

Sada IEnumerable<T>AddressHeader objektů použitá k inicializaci kolekce.

Výjimky

Jedna z hlaviček adresy v parametru addressHeaders je null.

Příklady

Následující fragment kódu ukazuje, jak vytvořit instanci AddressHeaderCollection třídy.

Platí pro