Count Method
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
Returns the total number of objects in a collection of Web Part properties.
collection.Count()
Parameters
Parameter |
Description |
---|---|
collection |
A reference to the Properties Collection. |
Remarks
Use the Count method to return a value indicating the number of items that are in a Web Part Properties Collection. If the Count method is 0 (zero), there are no objects in the collection.
Example 1: Microsoft Visual Basic Scripting Edition
Code
intPartsCount = WPSC.WebPartPage.Properties.Count()
Example 2: Microsoft JScript
Code
var intPartsCount = WPSC.WebPartPage.Properties.Count();
Requirements
Applies to: Properties Collection