Partager via


IIdentityProvider.GetPossibleIdentityTypes Method

Indicates if the supplied descriptor could represent a user, group or both.

Namespace:  Microsoft.VisualStudio.Services.Identity
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Function GetPossibleIdentityTypes ( _
    requestContext As TeamFoundationRequestContext, _
    descriptor As IdentityDescriptor _
) As IdentitySearchType
IdentitySearchType GetPossibleIdentityTypes(
    TeamFoundationRequestContext requestContext,
    IdentityDescriptor descriptor
)
IdentitySearchType GetPossibleIdentityTypes(
    TeamFoundationRequestContext^ requestContext, 
    IdentityDescriptor^ descriptor
)
abstract GetPossibleIdentityTypes : 
        requestContext:TeamFoundationRequestContext * 
        descriptor:IdentityDescriptor -> IdentitySearchType
function GetPossibleIdentityTypes(
    requestContext : TeamFoundationRequestContext, 
    descriptor : IdentityDescriptor
) : IdentitySearchType

Parameters

Return Value

Type: Microsoft.VisualStudio.Services.Identity.IdentitySearchType
One or more IdentitySearchType flags, or None if the descriptor could not be valid.

Remarks

GetIdentity(requestContext, identity).IsContainer and GetPossibleIdentityTypes(requestContext, GetDescriptor(requestContext, identity)) must return consistent results unless GetPossibleIdentityTypes simply returns IdentitySearchType.All. This method should be an inexpensive call and should make no database or remote service calls.

.NET Framework Security

See Also

Reference

IIdentityProvider Interface

Microsoft.VisualStudio.Services.Identity Namespace