다음을 통해 공유


Parts Collection

Applies to: SharePoint Foundation 2010

Contains the set of Web Parts on a Web Part Page.

Public Methods

The following table shows the methods of the Parts collection and a brief description of each.

Method

Description

Register Method  

Reserved for internal use only.

Unregister Method   

Reserved for internal use only.

Public Properties

The following table shows the properties of the Parts collection and a brief description of each.

Property

Description

Count Property

Returns the number of Web Parts on the current Web Part Page.

Item Property

Returns an object from a Parts collection.

Remarks

The Parts collection allows Web Parts to be retrieved by index. The Web Part infrastructure automatically registers all Web Parts on a Web Part Page.

See Also

Reference

Part Object

Parts Property

Other Resources

Web Part Page Services Component (WPSC) Object Model