SPUtility.GetFullNameFromLoginEx method (SPSite, String, Boolean)
Returns the display name of a user on the specified site based on the 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)
Syntax
'Declaration
Public Shared Function GetFullNameFromLoginEx ( _
site As SPSite, _
loginName As String, _
<OutAttribute> ByRef bIsDL As Boolean _
) As String
'Usage
Dim site As SPSite
Dim loginName As String
Dim bIsDL As Boolean
Dim returnValue As String
returnValue = SPUtility.GetFullNameFromLoginEx(site, _
loginName, bIsDL)
public static string GetFullNameFromLoginEx(
SPSite site,
string loginName,
out bool bIsDL
)
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.
bIsDL
Type: System.BooleanWhen this method returns, contains a Boolean value that is true to specify that the user object represents a distribution list; otherwise, false. This parameter is passed uninitialized.
Return value
Type: System.String
A string that contains the user name.