Język

WebPartDescriptionCollection Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy WebPartDescriptionCollection.

Przeciążenia

Nazwa Opis
WebPartDescriptionCollection()

Inicjuje puste nowe wystąpienie WebPartDescriptionCollection klasy.

WebPartDescriptionCollection(ICollection)

Inicjuje nowe wystąpienie WebPartDescriptionCollection obiektu, przekazując ICollection kolekcję WebPartDescription obiektów.

WebPartDescriptionCollection()

Inicjuje puste nowe wystąpienie WebPartDescriptionCollection klasy.

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

Uwagi

To przeciążenie konstruktora WebPartDescriptionCollection może służyć do tworzenia pustej kolekcji. Na przykład kontrolka ImportCatalogPart tworzy pusty WebPartDescriptionCollection obiekt, jeśli zawartość zaimportowanego pliku opisu to null.

Dotyczy

WebPartDescriptionCollection(ICollection)

Inicjuje nowe wystąpienie WebPartDescriptionCollection obiektu, przekazując ICollection kolekcję WebPartDescription obiektów.

public:
 WebPartDescriptionCollection(System::Collections::ICollection ^ webPartDescriptions);
public WebPartDescriptionCollection(System.Collections.ICollection webPartDescriptions);
new System.Web.UI.WebControls.WebParts.WebPartDescriptionCollection : System.Collections.ICollection -> System.Web.UI.WebControls.WebParts.WebPartDescriptionCollection
Public Sub New (webPartDescriptions As ICollection)

Parametry

webPartDescriptions
ICollection

Kolekcja WebPartDescription obiektów odpowiadających kontrolkom WebPart w wykazie.

Wyjątki

Parametr webPartDescriptions ma wartość null.

Element członkowski jest webPartDescriptionsnull

— lub —

Element członkowski webPartDescriptions nie jest obiektem typu WebPartDescription

— lub —

Element członkowski webPartDescriptions ma zduplikowaną ID właściwość.

Uwagi

Konstruktor WebPartDescriptionCollection(ICollection) jest używany przez GetAvailableWebPartDescriptions implementacje metod w różnych CatalogPart kontrolkach w celu utworzenia kolekcji WebPartDescription obiektów.

Zobacz też

Dotyczy