Partager via


ITeamFoundationIdentityService.ReadIdentity Method (TeamFoundationRequestContext, String)

Overload for above method that takes a single search factor and returns match following this order. 1. When there is no match, null. 2. When there is a single match, that identity regardless of whether the identity is active. 3. When there is a single active identity match, that identity.

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

Syntax

'Declaration
Function ReadIdentity ( _
    requestContext As TeamFoundationRequestContext, _
    generalSearchValue As String _
) As TeamFoundationIdentity
TeamFoundationIdentity ReadIdentity(
    TeamFoundationRequestContext requestContext,
    string generalSearchValue
)
TeamFoundationIdentity^ ReadIdentity(
    TeamFoundationRequestContext^ requestContext, 
    String^ generalSearchValue
)
abstract ReadIdentity : 
        requestContext:TeamFoundationRequestContext * 
        generalSearchValue:string -> TeamFoundationIdentity
function ReadIdentity(
    requestContext : TeamFoundationRequestContext, 
    generalSearchValue : String
) : TeamFoundationIdentity

Parameters

Return Value

Type: Microsoft.TeamFoundation.Server.Core.TeamFoundationIdentity
Returns TeamFoundationIdentity.

Exceptions

Exception Condition
MultipleIdentitiesFoundException

Thrown when there are multiple matches, unless exactly one identity is active.

.NET Framework Security

See Also

Reference

ITeamFoundationIdentityService Interface

ReadIdentity Overload

Microsoft.TeamFoundation.Server.Core Namespace