Delen via


TeamFoundationIdentityService.GetPreferredEmailAddress Method (TeamFoundationRequestContext, Guid, Boolean)

Get the preferred address.

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

Syntax

'Declaration
Public Function GetPreferredEmailAddress ( _
    requestContext As TeamFoundationRequestContext, _
    teamFoundationId As Guid, _
    confirmed As Boolean _
) As String
public string GetPreferredEmailAddress(
    TeamFoundationRequestContext requestContext,
    Guid teamFoundationId,
    bool confirmed
)
public:
virtual String^ GetPreferredEmailAddress(
    TeamFoundationRequestContext^ requestContext, 
    Guid teamFoundationId, 
    bool confirmed
) sealed
abstract GetPreferredEmailAddress : 
        requestContext:TeamFoundationRequestContext * 
        teamFoundationId:Guid * 
        confirmed:bool -> string  
override GetPreferredEmailAddress : 
        requestContext:TeamFoundationRequestContext * 
        teamFoundationId:Guid * 
        confirmed:bool -> string
public final function GetPreferredEmailAddress(
    requestContext : TeamFoundationRequestContext, 
    teamFoundationId : Guid, 
    confirmed : boolean
) : String

Parameters

  • confirmed
    Type: System.Boolean

    When true, returns the preferred address if it is set and confirmed. If not confirmed return the default email address. When false, returns the preferred address if it is set, otherwise returns the default.

Return Value

Type: System.String

Implements

ITeamFoundationIdentityService.GetPreferredEmailAddress(TeamFoundationRequestContext, Guid, Boolean)

.NET Framework Security

See Also

Reference

TeamFoundationIdentityService Class

GetPreferredEmailAddress Overload

Microsoft.TeamFoundation.Server.Core Namespace