SPUserCollection.GetByEmail method

Returns the user with the specified e-mail address.

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


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

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


  • 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


SPUserCollection class

SPUserCollection members

Microsoft.SharePoint namespace