Share via


SPBlockedSolutionCollection.Remove Method

Removes a solution with the given signature.

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

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