Delen via


ITeamFoundationIdentityService.GetPreferredEmailAddress Method (TeamFoundationRequestContext, Guid)

Gets the preferred email address for an identity. This address has been confirmed by the user to be the valid email address. If the custom email address is not confirmed, returns the default email address.

Namespace:  Microsoft.TeamFoundation.Server.Core
Assembly:  Microsoft.TeamFoundation.Server.Core (in Microsoft.TeamFoundation.Server.Core.dll)

Syntax

'Declaration
Function GetPreferredEmailAddress ( _
    requestContext As TeamFoundationRequestContext, _
    teamFoundationId As Guid _
) As String
string GetPreferredEmailAddress(
    TeamFoundationRequestContext requestContext,
    Guid teamFoundationId
)
String^ GetPreferredEmailAddress(
    TeamFoundationRequestContext^ requestContext, 
    Guid teamFoundationId
)
abstract GetPreferredEmailAddress : 
        requestContext:TeamFoundationRequestContext * 
        teamFoundationId:Guid -> string
function GetPreferredEmailAddress(
    requestContext : TeamFoundationRequestContext, 
    teamFoundationId : Guid
) : String

Parameters

Return Value

Type: System.String
Returns String.

.NET Framework Security

See Also

Reference

ITeamFoundationIdentityService Interface

GetPreferredEmailAddress Overload

Microsoft.TeamFoundation.Server.Core Namespace