SPUtility.GetFullNameFromLogin method (SPGlobalAdmin, String)

Returns the display name 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 string GetFullNameFromLogin(
	SPGlobalAdmin globalAdmin,
	string loginName
)

Parameters

globalAdmin
Type: Microsoft.SharePoint.Administration.SPGlobalAdmin

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

loginName
Type: System.String

A string that contains the user name of the user.

Return value

Type: System.String
A string that contains the display name of the user.
Show: