Delete Method

The Delete method of the SPWebPartCollection class deletes the Web Part with the specified GUID from the collection.

Parameters

storageKey   A GUID that identifies the Web Part.

Remarks

The Delete method throws an exception if the collection pertains to a single user and the Web Part is type I or type II.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security