Delen via


ITeamFoundationIdentityService.ReadIdentity Method (TeamFoundationRequestContext, IdentitySearchFactor, String, MembershipQuery, ReadIdentityOptions, IEnumerable<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, _
    searchFactor As IdentitySearchFactor, _
    factorValue As String, _
    queryMembership As MembershipQuery, _
    readOptions As ReadIdentityOptions, _
    propertyNameFilters As IEnumerable(Of String) _
) As TeamFoundationIdentity
TeamFoundationIdentity ReadIdentity(
    TeamFoundationRequestContext requestContext,
    IdentitySearchFactor searchFactor,
    string factorValue,
    MembershipQuery queryMembership,
    ReadIdentityOptions readOptions,
    IEnumerable<string> propertyNameFilters
)
TeamFoundationIdentity^ ReadIdentity(
    TeamFoundationRequestContext^ requestContext, 
    IdentitySearchFactor searchFactor, 
    String^ factorValue, 
    MembershipQuery queryMembership, 
    ReadIdentityOptions readOptions, 
    IEnumerable<String^>^ propertyNameFilters
)
abstract ReadIdentity : 
        requestContext:TeamFoundationRequestContext * 
        searchFactor:IdentitySearchFactor * 
        factorValue:string * 
        queryMembership:MembershipQuery * 
        readOptions:ReadIdentityOptions * 
        propertyNameFilters:IEnumerable<string> -> TeamFoundationIdentity
function ReadIdentity(
    requestContext : TeamFoundationRequestContext, 
    searchFactor : IdentitySearchFactor, 
    factorValue : String, 
    queryMembership : MembershipQuery, 
    readOptions : ReadIdentityOptions, 
    propertyNameFilters : IEnumerable<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