SPUtility.GuessLoginNameFromEmail Method
NOTE: This API is now obsolete.
Returns the domain user account of the user based on the specified 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 GuessLoginNameFromEmail ( _
site As SPSite, _
email As String _
) As String
'Usage
Dim site As SPSite
Dim email As String
Dim returnValue As String
returnValue = SPUtility.GuessLoginNameFromEmail(site, _
email)
[ObsoleteAttribute("Use SPUtility.ResolvePrincipal instead")]
public static string GuessLoginNameFromEmail(
SPSite site,
string email
)
Parameters
site
Type: Microsoft.SharePoint.SPSiteA Microsoft.SharePoint.SPSite object that represents the site to which the user belongs.
email
Type: System.StringA string that contains the e-mail address of the user.
Return Value
Type: System.String
A string that contains the domain user account.