SPUtility.GetLoginNameFromEmail method
NOTE: This API is now obsolete.
會傳回指定的網站集合和電子郵件地址為基礎之使用者的網域使用者帳戶。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<ObsoleteAttribute("Use SPUtility.ResolvePrincipal instead")> _
Public Shared Function GetLoginNameFromEmail ( _
site As SPSite, _
email As String _
) As String
'用途
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
)
參數
site
Type: Microsoft.SharePoint.SPSiteMicrosoft.SharePoint.SPSite物件,代表使用者所屬的網站。
email
Type: System.String包含使用者電子郵件地址的字串
傳回值
Type: System.String
內含之網域使用者帳戶的字串。