WebPartDescriptionCollection Konstruktory

Definice

Inicializuje novou instanci WebPartDescriptionCollection třídy.

Přetížení

Name Description
WebPartDescriptionCollection()

Inicializuje prázdnou novou instanci WebPartDescriptionCollection třídy.

WebPartDescriptionCollection(ICollection)

Inicializuje novou instanci WebPartDescriptionCollection objektu předáním ICollection kolekce WebPartDescription objektů.

WebPartDescriptionCollection()

Inicializuje prázdnou novou instanci WebPartDescriptionCollection třídy.

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

Poznámky

Toto přetížení konstruktoru WebPartDescriptionCollection lze použít k vytvoření prázdné kolekce. ImportCatalogPart Například ovládací prvek vytvoří prázdný WebPartDescriptionCollection objekt, pokud je nullobsah importovaného souboru popisu .

Platí pro

WebPartDescriptionCollection(ICollection)

Inicializuje novou instanci WebPartDescriptionCollection objektu předáním ICollection kolekce WebPartDescription objektů.

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

Kolekce WebPartDescription objektů, které odpovídají ovládacím prvkům WebPart v katalogu.

Výjimky

webPartDescriptions je null.

webPartDescriptions Člennull

nebo

Člen webPartDescriptions není objekt typu WebPartDescription

nebo

Člen webPartDescriptions má duplicitní ID vlastnost.

Poznámky

Konstruktor WebPartDescriptionCollection(ICollection) je používán GetAvailableWebPartDescriptions implementacemi metody v rámci různých CatalogPart ovládacích WebPartDescription prvků k vytvoření kolekce objektů.

Viz také

Platí pro