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)

public static string GetFullNameFromLoginEx(
	SPSite site,
	string loginName,
	out bool bIsDL
)

Parameters

site
Type: Microsoft.SharePoint.SPSite

A Microsoft.SharePoint.SPSite object that represents the site.

loginName
Type: System.String

A string that contains the user name of the user.

bIsDL
Type: System.Boolean

When 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.
Show: