SPUserCollection.GetByEmail method

Returns the user with the specified e-mail address.

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

Syntax

'Declaration
Public Function GetByEmail ( _
    emailAddress As String _
) As SPUser
'Usage
Dim instance As SPUserCollection
Dim emailAddress As String
Dim returnValue As SPUser

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

Parameters

  • emailAddress
    Type: System.String

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

Return value

Type: Microsoft.SharePoint.SPUser
A Microsoft.SharePoint.SPUser object that represents the user.

See also

Reference

SPUserCollection class

SPUserCollection members

Microsoft.SharePoint namespace