SPUtility.GetFullNameandEmailfromLogin method (SPGlobalAdmin, String, String, String)

Returns the display name and the e-mail address of the user on a server or server farm with the specified user name.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public static void GetFullNameandEmailfromLogin(
	SPGlobalAdmin globalAdmin,
	string login,
	out string displayName,
	out string email
)

Parameters

globalAdmin
Type: Microsoft.SharePoint.Administration.SPGlobalAdmin

A Microsoft.SharePoint.Administration.SPGlobalAdmin object that represents global administrative settings for the server or server farm.

login
Type: System.String

A string that contains the user name of the user.

displayName
Type: System.String

When this method returns, contains a string that contains the display name of the user. This parameter is passed uninitialized.

email
Type: System.String

When this method returns, contains a string that contains the e-mail address of the user. This parameter is passed uninitialized.

Show: