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


Метод UserCollection.GetById

Returns the user with the specified member ID.

Пространство имен:  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 GetById ( _
    id As Integer _
) As User
'Применение
Dim instance As UserCollection
Dim id As Integer
Dim returnValue As User

returnValue = instance.GetById(id)
public User GetById(
    int id
)

Параметры

  • id
    Тип: System.Int32

    A 32-bit integer that specifies the member identifier.

Возвращаемое значение

Тип: Microsoft.SharePoint.Client.User
Returns a User instance representing the user with the specified member ID.

Исключения

Исключение Условие
[Microsoft.SharePoint.SPException]

User cannot be found. Error code: -2146232832.

[System.UnauthorizedAccessException]

The current user has insufficient permissions. Error code: -2147024891.

См. также

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

UserCollection класс

Элементы UserCollection

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