共用方式為


SP.WebParts Namespace

Applies to: SharePoint Foundation 2010

Provides the types and members used to work with Web Parts.

Classes

The following table lists classes in the SP.WebParts namespace that are supported for public use in Microsoft SharePoint Foundation.

Name

Description

LimitedWebPartManager

Provides operations to access and modify the existing Web Parts on a Web Part Page, and add new ones to the Web Part Page.

LimitedWebPartManagerObjectPropertyNames

Specifies properties of the SP.WebParts.LimitedWebPartManager Class.

LimitedWebPartManagerPropertyNames

This class and its members are reserved for internal use and are not intended to be used in your code.

WebPart

Represents a Web Part on a Web Part Page.

WebPartDefinition

Represents a Web Part on a Web Part Page.

WebPartDefinitionCollection

Implements a collection of Web Part definition objects.

WebPartDefinitionObjectPropertyNames

Specifies properties of the SP.WebParts.WebPartDefinition Class.

WebPartDefinitionPropertyNames

Specifies properties of the SP.WebParts.LimitedWebPartManager Class.

WebPartPropertyNames

This class and its members are reserved for internal use and are not intended to be used in your code.

Enumerations

Name

Description

PersonalizationScope

Specifies the personalization scope for the LimitedWebPartManager object.