共用方式為


SPUtility.GetIdentifierFromEmail Method

NOTE: This API is now obsolete.

Returns the identifier (ID) of the site 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 GetIdentifierFromEmail ( _
    web As SPWeb, _
    email As String _
) As String
'Usage
Dim web As SPWeb
Dim email As String
Dim returnValue As String

returnValue = SPUtility.GetIdentifierFromEmail(web, _
    email)
[ObsoleteAttribute("Use SPUtility.ResolvePrincipal instead")]
public static string GetIdentifierFromEmail(
    SPWeb web,
    string email
)

Parameters

  • email
    Type: System.String

    A string that contains the e-mail address.

Return Value

Type: System.String
A string that contains the ID.

See Also

Reference

SPUtility Class

SPUtility Members

Microsoft.SharePoint.Utilities Namespace