Compartilhar via


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.

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