다음을 통해 공유


Count Method

Applies to: SharePoint Foundation 2010

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

See Also

Other Resources

Web Part Page Services Component (WPSC) Object Model