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