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)
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