共用方式為


RemoveWPPack Method

The RemoveWPPack method of the SPGlobalAdmin class disables the specified Web Part Package and removes it from the Web Part gallery of the server.

Parameters

strBaseName   A string that contains the name of the Web Part Package.

nLang   An unsigned 32-bit integer that specifies the locale ID for the Web Part Package. This parameter can contain null.

strURL   A string that contains the URL for the virtual server. Set to null to delete all Web Part Packages on the front-end Web server that correspond to the name specified by the strName parameter.

logWriter   A System.IO.TextWriter object that is used to write an error log to the text stream. This parameter can contain null.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security