Share via


SPBlockedSolutionCollection.Add Method

Adds a new solution to the blocked solution collection.

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

Syntax

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

instance.Add(solution)
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public void Add(
    SPBlockedSolution solution
)

Parameters

Implements

ICollection<T>.Add(T)

Remarks

If a blocked solution already exists for the given signature, this method will throw an argument exception.

See Also

Reference

SPBlockedSolutionCollection Class

SPBlockedSolutionCollection Members

Microsoft.SharePoint.UserCode Namespace