Поделиться через


Метод 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 пустая ссылка (Nothing в Visual Basic).

См. также

Справочные материалы

Web класс

Элементы Web

Пространство имен Microsoft.SharePoint.Client