Share via


IIdentityManagementService2.ReadIdentity Method (IdentityDescriptor, MembershipQuery, ReadIdentityOptions, IEnumerable<String>, IdentityPropertyScope)

Overload that takes a single descriptor.

Read identity for given descriptor. First try IMS store. If it is not found, optionally try a source like Active Directory.

Note that performance will be fastest when no membership information is requested.

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

Syntax

'Declaration
Function ReadIdentity ( _
    descriptor As IdentityDescriptor, _
    queryMembership As MembershipQuery, _
    readOptions As ReadIdentityOptions, _
    propertyNameFilters As IEnumerable(Of String), _
    propertyScope As IdentityPropertyScope _
) As TeamFoundationIdentity
TeamFoundationIdentity ReadIdentity(
    IdentityDescriptor descriptor,
    MembershipQuery queryMembership,
    ReadIdentityOptions readOptions,
    IEnumerable<string> propertyNameFilters,
    IdentityPropertyScope propertyScope
)
TeamFoundationIdentity^ ReadIdentity(
    IdentityDescriptor^ descriptor, 
    MembershipQuery queryMembership, 
    ReadIdentityOptions readOptions, 
    IEnumerable<String^>^ propertyNameFilters, 
    IdentityPropertyScope propertyScope
)
abstract ReadIdentity : 
        descriptor:IdentityDescriptor * 
        queryMembership:MembershipQuery * 
        readOptions:ReadIdentityOptions * 
        propertyNameFilters:IEnumerable<string> * 
        propertyScope:IdentityPropertyScope -> TeamFoundationIdentity
function ReadIdentity(
    descriptor : IdentityDescriptor, 
    queryMembership : MembershipQuery, 
    readOptions : ReadIdentityOptions, 
    propertyNameFilters : IEnumerable<String>, 
    propertyScope : IdentityPropertyScope
) : TeamFoundationIdentity

Parameters

Return Value

Type: Microsoft.TeamFoundation.Framework.Client.TeamFoundationIdentity
Identity if found; or else null.

.NET Framework Security

See Also

Reference

IIdentityManagementService2 Interface

ReadIdentity Overload

Microsoft.TeamFoundation.Framework.Client Namespace