SPUtility.GetFullNameandEmailfromLogin Method (SPGlobalAdmin, String, String, String)
Returns the display name and the e-mail address of the user on a server or server farm with 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 ( _
globalAdmin As SPGlobalAdmin, _
login As String, _
<OutAttribute> ByRef displayName As String, _
<OutAttribute> ByRef email As String _
)
'Usage
Dim globalAdmin As SPGlobalAdmin
Dim login As String
Dim displayName As String
Dim email As StringSPUtility.GetFullNameandEmailfromLogin(globalAdmin, _
login, displayName, email)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public static void GetFullNameandEmailfromLogin(
SPGlobalAdmin globalAdmin,
string login,
out string displayName,
out string email
)
Parameters
globalAdmin
Type: Microsoft.SharePoint.Administration.SPGlobalAdminA Microsoft.SharePoint.Administration.SPGlobalAdmin object that represents global administrative settings for the server or server farm.
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.