共用方式為


ITeamFoundationIdentityService.ReadRequestIdentity Method

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

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

Syntax

'Declaration
Function ReadRequestIdentity ( _
    requestContext As TeamFoundationRequestContext _
) As TeamFoundationIdentity
TeamFoundationIdentity ReadRequestIdentity(
    TeamFoundationRequestContext requestContext
)
TeamFoundationIdentity^ ReadRequestIdentity(
    TeamFoundationRequestContext^ requestContext
)
abstract ReadRequestIdentity : 
        requestContext:TeamFoundationRequestContext -> TeamFoundationIdentity
function ReadRequestIdentity(
    requestContext : TeamFoundationRequestContext
) : TeamFoundationIdentity

Parameters

Return Value

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

Exceptions

Exception Condition
IdentityNotFoundException

Thrown when the identity does not exist in the store.

.NET Framework Security

See Also

Reference

ITeamFoundationIdentityService Interface

Microsoft.TeamFoundation.Server.Core Namespace