Share via


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

Return value

Type: System.Boolean
Returns Booleantrue if the solution is in the blocked collection otherwise false.

Implements

ICollection<T>.Contains(T)

See also

Reference

SPBlockedSolutionCollection class

SPBlockedSolutionCollection members

Microsoft.SharePoint.UserCode namespace