WebPartDescriptionCollection 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 WebPartDescriptionCollection 類別的新執行個體。
多載
WebPartDescriptionCollection() |
初始化 WebPartDescriptionCollection 類別新的空執行個體。 |
WebPartDescriptionCollection(ICollection) |
傳入 WebPartDescriptionCollection 物件的 ICollection 集合,初始化 WebPartDescription 物件的新執行個體。 |
WebPartDescriptionCollection()
初始化 WebPartDescriptionCollection 類別新的空執行個體。
public:
WebPartDescriptionCollection();
public WebPartDescriptionCollection ();
Public Sub New ()
備註
此函式的多載 WebPartDescriptionCollection 可以用來建立空集合。 例如,如果匯 ImportCatalogPart 入的描述檔案 WebPartDescriptionCollection 的內容是,控制項就會建立空的物件 null
。
適用於
WebPartDescriptionCollection(ICollection)
傳入 WebPartDescriptionCollection 物件的 ICollection 集合,初始化 WebPartDescription 物件的新執行個體。
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)
參數
- webPartDescriptions
- ICollection
對應到目錄中 WebPartDescription 控制項的 WebPart 物件集合。
例外狀況
webPartDescriptions
為 null
。
webPartDescriptions
的成員為 null
-或-
webPartDescriptions
的成員不是 WebPartDescription 型別的物件
-或-
的成員 webPartDescriptions
具有重複的 ID 屬性。
備註
WebPartDescriptionCollection(ICollection)方法會使用此函式 GetAvailableWebPartDescriptions CatalogPart 來建立物件的集合 WebPartDescription 。