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
globalAdmin
Type: Microsoft.SharePoint.Administration.SPGlobalAdminA Microsoft.SharePoint.Administration.SPGlobalAdmin object that represents global administrative settings for the server or server farm.
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.