Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

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)
[ObsoleteAttribute("Use SPUtility.ResolvePrincipal instead")]
public static string GetLoginNameFromEmail(
	SPSite site,
	string email


Type: Microsoft.SharePoint.SPSite

A Microsoft.SharePoint.SPSite object that represents the site to which the user belongs.

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.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.