GetFullNameandEmailfromLogin method (SPWeb, String, String, String)
Collapse the table of content
Expand the table of content

SPUtility.GetFullNameandEmailfromLogin method (SPWeb, String, String, String)

Returns the display name and the e-mail address of the Web-site user who has the specified user name.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public static void GetFullNameandEmailfromLogin(
	SPWeb web,
	string login,
	out string displayName,
	out string email
)

Parameters

web
Type: Microsoft.SharePoint.SPWeb

An SPWeb object that represents the Web-site.

login
Type: System.String

A string that contains the user name of the user.

displayName
Type: System.String

When this method returns, contains a string that contains the display name of the user. This parameter is passed uninitialized.

email
Type: System.String

When this method returns, contains a string that contains the e-mail address of the user. This parameter is passed uninitialized.

Show:
© 2016 Microsoft