SPUtility.GetFullNameFromLoginEx Method (String, Boolean)
Returns the display name of a user with the specified user name and a Boolean value indicating whether the user object represents a distribution list.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Shared Function GetFullNameFromLoginEx ( _
loginName As String, _
<OutAttribute> ByRef bIsDL As Boolean _
) As String
'Usage
Dim loginName As String
Dim bIsDL As Boolean
Dim returnValue As String
returnValue = SPUtility.GetFullNameFromLoginEx(loginName, _
bIsDL)
public static string GetFullNameFromLoginEx(
string loginName,
out bool bIsDL
)
Parameters
loginName
Type: System.StringThe login name of the user.
bIsDL
Type: System.BooleanReturns true to indicate that the user object represents a distribution list; otherwise, returns false.
Return Value
Type: System.String
The display name of the user or distribution list.