Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context to read.
checkIdentityExistsInStore
Type: System.BooleanIf 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
- 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.