语言

WebPartDescriptionCollection 构造函数

定义

初始化 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 。

另请参阅

适用于