Add(Microsoft.SharePoint.WebPartPages.WebPart) Method

The Add method of the SPWebPartCollection class adds the specified Web Part to the collection.

Parameters

webPart   A Web Part object that represents the new Web Part.

Return Value

A GUID that identifies the Web Part.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security