SPUtility.GetNTFullNameandEmailfromLogin Method (SPGlobalAdmin, String, String, String)
Retrieves the display name and e-mail address that are used in the Windows NT operating system for a specified user on the server or server farm.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)> _
Public Shared Sub GetNTFullNameandEmailfromLogin ( _
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.GetNTFullNameandEmailfromLogin(globalAdmin, _
login, displayName, email)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public static void GetNTFullNameandEmailfromLogin(
SPGlobalAdmin globalAdmin,
string login,
out string displayName,
out string email
)
Parameters
globalAdmin
Type: Microsoft.SharePoint.Administration.SPGlobalAdminA SPGlobalConfig object that represents the 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.StringA string that contains the display name of the user.
email
Type: System.StringA string that contains the e-mail address of the user.