Partager via


ITeamFoundationIdentityService.GetPreferredEmailAddress Method (TeamFoundationRequestContext, Guid, Boolean)

Gets the preferred email address for an identity. If the preferred has not been set, the default is always returned.

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, _
    confirmed As Boolean _
) As String
string GetPreferredEmailAddress(
    TeamFoundationRequestContext requestContext,
    Guid teamFoundationId,
    bool confirmed
)
String^ GetPreferredEmailAddress(
    TeamFoundationRequestContext^ requestContext, 
    Guid teamFoundationId, 
    bool confirmed
)
abstract GetPreferredEmailAddress : 
        requestContext:TeamFoundationRequestContext * 
        teamFoundationId:Guid * 
        confirmed:bool -> string
function GetPreferredEmailAddress(
    requestContext : TeamFoundationRequestContext, 
    teamFoundationId : Guid, 
    confirmed : boolean
) : String

Parameters

  • confirmed
    Type: System.Boolean

    If True, only returns the preferred address if it has been confirmed by the user. If False, returns the preferred if it has been set, otherwise default address.

Return Value

Type: System.String
Returns String.

.NET Framework Security

See Also

Reference

ITeamFoundationIdentityService Interface

GetPreferredEmailAddress Overload

Microsoft.TeamFoundation.Server.Core Namespace