Share via


SPGlobalAdmin.RemoveWPPack method

NOTE: This API is now obsolete.

Use the SPSolution class and other related solution objects to deploy Web Parts instead. (In Windows SharePoint Services 2.0, the RemoveWPPack method disabled the specified Web Part package and removed it from the Web Part gallery of the server, and is maintained for backward compatibility.)

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<ObsoleteAttribute("Use the SPSolution objects instead.", False)> _
Public Function RemoveWPPack ( _
    strBaseName As String, _
    nLang As UInteger, _
    strUrl As String, _
    logWriter As TextWriter _
) As Integer
'Usage
Dim instance As SPGlobalAdmin
Dim strBaseName As String
Dim nLang As UInteger
Dim strUrl As String
Dim logWriter As TextWriter
Dim returnValue As Integer

returnValue = instance.RemoveWPPack(strBaseName, _
    nLang, strUrl, logWriter)
[ObsoleteAttribute("Use the SPSolution objects instead.", false)]
public int RemoveWPPack(
    string strBaseName,
    uint nLang,
    string strUrl,
    TextWriter logWriter
)

Parameters

  • strBaseName
    Type: System.String

    A string that contains the name of the Web Part package.

  • nLang
    Type: System.UInt32

    An unsigned 32-bit integer that specifies the locale ID for the Web Part package. This parameter can contain a null reference (Nothing in Visual Basic).

  • strUrl
    Type: System.String

    A string that specifies the URL of the Web Part package.

  • logWriter
    Type: System.IO.TextWriter

    A System.IO.TextWriter object that is used to write an error log to the text stream. This parameter can contain a null reference (Nothing in Visual Basic).

Return value

Type: System.Int32
A 32-bit integer.

See also

Reference

SPGlobalAdmin class

SPGlobalAdmin members

Microsoft.SharePoint.Administration namespace