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


Метод UserCollection.GetByEmail

Returns the user with the specified e-mail address.

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

returnValue = instance.GetByEmail(emailAddress)
public User GetByEmail(
    string emailAddress
)

Параметры

  • emailAddress
    Тип: System.String

    A string that contains the e-mail address of the user.

    It must not be пустая ссылка (Nothing в Visual Basic).

    It must not be empty.

    Its length must be equal to or less than 255.

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

Тип: Microsoft.SharePoint.Client.User
Returns a User.instance representing the user with the specified e-mail address.

Исключения

Исключение Условие
[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