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)

Syntax

'Declaration
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)
public static void GetFullNameandEmailfromLogin(
    SPGlobalAdmin globalAdmin,
    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

    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.

See also

Reference

SPUtility class

SPUtility members

GetFullNameandEmailfromLogin overload

Microsoft.SharePoint.Utilities namespace