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
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- teamFoundationId
Type: System.Guid
confirmed
Type: System.BooleanWhen 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
TeamFoundationIdentityService Class