WebPartDescriptionCollection Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the WebPartDescriptionCollection class.
Overloads
WebPartDescriptionCollection() |
Initializes an empty new instance of the WebPartDescriptionCollection class. |
WebPartDescriptionCollection(ICollection) |
Initializes a new instance of a WebPartDescriptionCollection object by passing in an ICollection collection of WebPartDescription objects. |
WebPartDescriptionCollection()
Initializes an empty new instance of the WebPartDescriptionCollection class.
public:
WebPartDescriptionCollection();
public WebPartDescriptionCollection ();
Public Sub New ()
Remarks
This overload of the WebPartDescriptionCollection constructor can be used to create an empty collection. For example, the ImportCatalogPart control creates an empty WebPartDescriptionCollection object if the content of an imported description file is null
.
Applies to
WebPartDescriptionCollection(ICollection)
Initializes a new instance of a WebPartDescriptionCollection object by passing in an ICollection collection of WebPartDescription objects.
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)
Parameters
- webPartDescriptions
- ICollection
A collection of WebPartDescription objects that correspond to the WebPart controls in a catalog.
Exceptions
webPartDescriptions
is null
.
A member of webPartDescriptions
is null
-or-
A member of webPartDescriptions
is not an object of type WebPartDescription
-or-
A member of webPartDescriptions
has a duplicate ID property.
Remarks
The WebPartDescriptionCollection(ICollection) constructor is used by the GetAvailableWebPartDescriptions method implementations within the various CatalogPart controls to create a collection of WebPartDescription objects.
See also
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기