共用方式為


SPGroup.CanCurrentUserViewMembership property

取得布林值,這個值,指出目前的使用者是否可以檢視群組的成員清單。

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public ReadOnly Property CanCurrentUserViewMembership As Boolean
    Get
'用途
Dim instance As SPGroup
Dim value As Boolean

value = instance.CanCurrentUserViewMembership
public bool CanCurrentUserViewMembership { get; }

Property value

Type: System.Boolean
true如果目前的使用者可以檢視成員] 清單的群組。否則, false。

請參閱

參照

SPGroup class

SPGroup members

Microsoft.SharePoint namespace