SPRoleDefinitionBindingCollection.Contains method

Returns a Boolean value that indicates whether the specified role definition is in the binding collection.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Function Contains ( _
    roleDefinition As SPRoleDefinition _
) As Boolean
'Usage
Dim instance As SPRoleDefinitionBindingCollection
Dim roleDefinition As SPRoleDefinition
Dim returnValue As Boolean

returnValue = instance.Contains(roleDefinition)
public bool Contains(
    SPRoleDefinition roleDefinition
)

Parameters

Return value

Type: System.Boolean
true if the collection contains the role definition; otherwise, false.

See also

Reference

SPRoleDefinitionBindingCollection class

SPRoleDefinitionBindingCollection members

Microsoft.SharePoint namespace