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

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