SPBlockedSolutionCollection.Contains Method
Verifies whether a solution is in the blocked collection or not.
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 Contains ( _
solution As SPBlockedSolution _
) As Boolean
'Usage
Dim instance As SPBlockedSolutionCollection
Dim solution As SPBlockedSolution
Dim returnValue As Boolean
returnValue = instance.Contains(solution)
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public bool Contains(
SPBlockedSolution solution
)
Parameters
solution
Type: Microsoft.SharePoint.UserCode.SPBlockedSolutionThe solution to verify.
Return Value
Type: System.Boolean
Returns Booleantrue if the solution is in the blocked collection otherwise false.
Implements
See Also
Reference
SPBlockedSolutionCollection Class