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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
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
roleDefinition
Type: Microsoft.SharePoint.SPRoleDefinitionAn SPRoleDefinition object that represents the role definition.
Return Value
Type: System.Boolean
true if the collection contains the role definition; otherwise, false.
See Also
Reference
SPRoleDefinitionBindingCollection Class