Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The Add method of the SPWebPartCollection class adds a Web Part to the collection based on the specified Web Part definition file.
Parameters
dwp A string that specifies the Web Part definition file (DWP).
Return Value
A GUID that identifies the Web Part.
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security