Share via


SPBlockedSolutionCollection.Remove method

Removes a solution with the given signature.

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public Function Remove ( _
    solution As SPBlockedSolution _
) As Boolean
'Usage
Dim instance As SPBlockedSolutionCollection
Dim solution As SPBlockedSolution
Dim returnValue As Boolean

returnValue = instance.Remove(solution)
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public bool Remove(
    SPBlockedSolution solution
)

Parameters

Return value

Type: System.Boolean
true if the blocked solution was removed; false if the solution did not exist.

Implements

ICollection<T>.Remove(T)

Remarks

The removal is immediately updated in configuration database. This object will throw an ArgumentNullException if the solution signature is a null reference (Nothing in Visual Basic).

See also

Reference

SPBlockedSolutionCollection class

SPBlockedSolutionCollection members

Microsoft.SharePoint.UserCode namespace