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
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- teamFoundationId
Type: System.Guid
confirmed
Type: System.BooleanIf 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
- 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
ITeamFoundationIdentityService Interface