SPUtility.GetFullNameFromLogin method (SPSite, String)

Returns the display name of the site user who has the specified user name.

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

public static string GetFullNameFromLogin(
	SPSite site,
	string loginName
)

Parameters

site
Type: Microsoft.SharePoint.SPSite

A Microsoft.SharePoint.SPSite object that represents the site.

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: