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)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)> _
Public Shared Sub GetFullNameandEmailfromLogin ( _
web As SPWeb, _
login As String, _
<OutAttribute> ByRef displayName As String, _
<OutAttribute> ByRef email As String _
)
'Usage
Dim web As SPWeb
Dim login As String
Dim displayName As String
Dim email As StringSPUtility.GetFullNameandEmailfromLogin(web, _
login, displayName, email)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public static void GetFullNameandEmailfromLogin(
SPWeb web,
string login,
out string displayName,
out string email
)
Parameters
web
Type: Microsoft.SharePoint.SPWebAn SPWeb object that represents the Web-site.
login
Type: System.StringA string that contains the user name of the user.
displayName
Type: System.StringWhen this method returns, contains a string that contains the display name of the user. This parameter is passed uninitialized.
email
Type: System.StringWhen this method returns, contains a string that contains the e-mail address of the user. This parameter is passed uninitialized.