SPSolutionCollection.Remove Method (String)

Removes the solution with the specified name from the collection of solutions.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Sub Remove ( _
    name As String _
)
'Usage
Dim instance As SPSolutionCollection
Dim name As String

instance.Remove(name)
public void Remove(
    string name
)

Parameters

  • name
    Type: System.String

    A string containing the name of the solution.

Remarks

The Remove method returns an error if all the language packs for a solution have already been removed from the collection. In this case, use the solution's Delete method.

See Also

Reference

SPSolutionCollection Class

SPSolutionCollection Members

Remove Overload

Microsoft.SharePoint.Administration Namespace