Web.DoesUserHavePermissions 方法

Returns whether the current user has the given set of permissions.

命名空间:  Microsoft.SharePoint.Client
程序集:   Microsoft.SharePoint.Client.Silverlight(位于 Microsoft.SharePoint.Client.Silverlight.dll 中);  Microsoft.SharePoint.Client.Phone(位于 Microsoft.SharePoint.Client.Phone.dll 中)  Microsoft.SharePoint.Client(位于 Microsoft.SharePoint.Client.dll 中)

语法

声明
Public Function DoesUserHavePermissions ( _
    permissionMask As BasePermissions _
) As ClientResult(Of Boolean)
用法
Dim instance As Web
Dim permissionMask As BasePermissions
Dim returnValue As ClientResult(Of Boolean)

returnValue = instance.DoesUserHavePermissions(permissionMask)
public ClientResult<bool> DoesUserHavePermissions(
    BasePermissions permissionMask
)

参数

返回值

类型:Microsoft.SharePoint.Client.ClientResult<Boolean>
Returns a ClientResult<T> instance representing whether the current user has the given set of permissions.

备注

It must not be 空引用(无 在 Visual Basic 中).

另请参阅

引用

Web 类

Web 成员

Microsoft.SharePoint.Client 命名空间