AddressHeaderCollection Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy AddressHeaderCollection.

Przeciążenia

AddressHeaderCollection()

Inicjuje nowe wystąpienie klasy AddressHeaderCollection.

AddressHeaderCollection(IEnumerable<AddressHeader>)

Inicjuje AddressHeaderCollection nowe wystąpienie klasy z wyliczanego zestawu nagłówków adresów.

AddressHeaderCollection()

Inicjuje nowe wystąpienie klasy AddressHeaderCollection.

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

Przykłady

Poniższy fragment kodu ilustruje sposób tworzenia wystąpienia AddressHeaderCollection klasy za pomocą konstruktora bez parametrów.

Dotyczy

AddressHeaderCollection(IEnumerable<AddressHeader>)

Inicjuje AddressHeaderCollection nowe wystąpienie klasy z wyliczanego zestawu nagłówków adresów.

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>

Zestaw IEnumerable<T> AddressHeader obiektów używanych do inicjowania kolekcji.

Wyjątki

Jednym z nagłówków adresów w parametrze addressHeaders jest null.

Przykłady

Poniższy fragment kodu ilustruje sposób tworzenia wystąpienia AddressHeaderCollection klasy.

Dotyczy