SPRoleDefinitionBindingCollection.Contains method
傳回布林值,指出指定的角色定義是否繫結集合中。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Function Contains ( _
roleDefinition As SPRoleDefinition _
) As Boolean
'用途
Dim instance As SPRoleDefinitionBindingCollection
Dim roleDefinition As SPRoleDefinition
Dim returnValue As Boolean
returnValue = instance.Contains(roleDefinition)
public bool Contains(
SPRoleDefinition roleDefinition
)
參數
roleDefinition
Type: Microsoft.SharePoint.SPRoleDefinitionSPRoleDefinition物件,表示角色定義。
傳回值
Type: System.Boolean
true如果集合包含角色定義中 ;否則, false。
請參閱
參照
SPRoleDefinitionBindingCollection class