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

  • 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.

See also

Reference

SPUtility class

SPUtility members

GetFullNameFromLogin overload

Microsoft.SharePoint.Utilities namespace