Add(String) Method

The Add method of the SPWebPartCollection class adds a Web Part to the collection based on the specified Web Part definition file.


dwp A string that specifies the Web Part definition file (DWP).

Return Value

A GUID that identifies the Web Part.


Platforms: Microsoft Windows Server 2003

Security: Code Access Security