SPBlockedSolutionCollection.Add method
Adds a new solution to the blocked solution collection.
Namespace: Microsoft.SharePoint.UserCode
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
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
solution
Type: Microsoft.SharePoint.UserCode.SPBlockedSolutionThe solution to be blocked.
Implements
Remarks
If a blocked solution already exists for the given signature, this method will throw an argument exception.
See also
Reference
SPBlockedSolutionCollection class