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

Retrieves the display name and e-mail address that are used in the Windows NT operating system for a specified user on the server or server farm.

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

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

Parameters

globalAdmin
Type: Microsoft.SharePoint.Administration.SPGlobalAdmin

A SPGlobalConfig object that represents the 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

A string that contains the display name of the user.

email
Type: System.String

A string that contains the e-mail address of the user.

Show: