SPUtility.GetNTFullNameandEmailfromLogin Method (SPWeb, String, String, String)

Retrieves the display name and e-mail address that are used in the Windows NT operating system for a user on the specified site.

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 ( _
    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.GetNTFullNameandEmailfromLogin(web, _
    login, displayName, email)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public static void GetNTFullNameandEmailfromLogin(
    SPWeb web,
    string login,
    out string displayName,
    out string email
)

Parameters

  • login
    Type: System.String

    A string that contains the user name of the user.

  • displayName
    Type: System.String

    A string that contains the display name of the user.

  • email
    Type: System.String

    A string that contains the e-mail address of the user.

See Also

Reference

SPUtility Class

SPUtility Members

GetNTFullNameandEmailfromLogin Overload

Microsoft.SharePoint.Utilities Namespace