共用方式為


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
)

參數

傳回值

Type: System.Boolean
true如果集合包含角色定義中 ;否則, false。

請參閱

參照

SPRoleDefinitionBindingCollection class

SPRoleDefinitionBindingCollection members

Microsoft.SharePoint namespace