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)
Syntax
'Declaration
Public Shared Function GetFullNameFromLogin ( _
site As SPSite, _
loginName As String _
) As String
'Usage
Dim site As SPSite
Dim loginName As String
Dim returnValue As String
returnValue = SPUtility.GetFullNameFromLogin(site, _
loginName)
public static string GetFullNameFromLogin(
SPSite site,
string loginName
)
Parameters
site
Type: Microsoft.SharePoint.SPSiteA Microsoft.SharePoint.SPSite object that represents the site.
loginName
Type: System.StringA string that contains the user name of the user.
Return value
Type: System.String
A string that contains the display name of the user.