TeamFoundationIdentityService.ReadRequestIdentity Method (TeamFoundationRequestContext, Boolean)

Resolves the authorized user associated with the request context to a TeamFoundationIdentity.

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

Syntax

'Declaration
Public Function ReadRequestIdentity ( _
    requestContext As TeamFoundationRequestContext, _
    checkIdentityExistsInStore As Boolean _
) As TeamFoundationIdentity
public TeamFoundationIdentity ReadRequestIdentity(
    TeamFoundationRequestContext requestContext,
    bool checkIdentityExistsInStore
)
public:
virtual TeamFoundationIdentity^ ReadRequestIdentity(
    TeamFoundationRequestContext^ requestContext, 
    bool checkIdentityExistsInStore
) sealed
abstract ReadRequestIdentity : 
        requestContext:TeamFoundationRequestContext * 
        checkIdentityExistsInStore:bool -> TeamFoundationIdentity  
override ReadRequestIdentity : 
        requestContext:TeamFoundationRequestContext * 
        checkIdentityExistsInStore:bool -> TeamFoundationIdentity
public final function ReadRequestIdentity(
    requestContext : TeamFoundationRequestContext, 
    checkIdentityExistsInStore : boolean
) : TeamFoundationIdentity

Parameters

  • checkIdentityExistsInStore
    Type: System.Boolean

    If true, causes IdentityNotFoundException to be thrown if the identity does not occur in the store.

Return Value

Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationIdentity
A TeamFoundationIdentity for the authorized user.

Implements

ITeamFoundationIdentityService.ReadRequestIdentity(TeamFoundationRequestContext, Boolean)

Exceptions

Exception Condition
IdentityNotFoundException

Thrown when the identity does not occur in the store or cannot be resolved.

.NET Framework Security

See Also

Reference

TeamFoundationIdentityService Class

ReadRequestIdentity Overload

Microsoft.TeamFoundation.Framework.Server Namespace