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)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)> _
Public Shared Function GetFullNameFromLogin ( _
    globalAdmin As SPGlobalAdmin, _
    loginName As String _
) As String
'Usage
Dim globalAdmin As SPGlobalAdmin
Dim loginName As String
Dim returnValue As String

returnValue = SPUtility.GetFullNameFromLogin(globalAdmin, _
    loginName)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)]
public static string GetFullNameFromLogin(
    SPGlobalAdmin globalAdmin,
    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