SPUtility.GetLoginNameFromEmail Method

NOTE: This API is now obsolete.

Returns the domain user account of the user based on the specified site collection and e-mail address.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<ObsoleteAttribute("Use SPUtility.ResolvePrincipal instead")> _
Public Shared Function GetLoginNameFromEmail ( _
    site As SPSite, _
    email As String _
) As String
'Usage
Dim site As SPSite
Dim email As String
Dim returnValue As String

returnValue = SPUtility.GetLoginNameFromEmail(site, _
    email)
[ObsoleteAttribute("Use SPUtility.ResolvePrincipal instead")]
public static string GetLoginNameFromEmail(
    SPSite site,
    string email
)

Parameters

  • email
    Type: System.String

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

Return Value

Type: System.String
A string that contains the domain user account.

See Also

Reference

SPUtility Class

SPUtility Members

Microsoft.SharePoint.Utilities Namespace