SPGroup.ContainsCurrentUser property
取得布林值,這個值,指出群組是否包含目前的使用者,可能包含,透過直接或間接成員資格。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public ReadOnly Property ContainsCurrentUser As Boolean
Get
'用途
Dim instance As SPGroup
Dim value As Boolean
value = instance.ContainsCurrentUser
public bool ContainsCurrentUser { get; }
Property value
Type: System.Boolean
true如果群組包含目前的使用者。否則, false。例如,如果群組物件中包含一個包含目前使用者的網域群組,這個屬性會傳回true。
備註
ExplicitlyContainsCurrentUser屬性不會考慮間接的成員資格。