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
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
descriptor
Type: Microsoft.VisualStudio.Services.Identity.IdentityDescriptorThe descriptor related to the current identity provider.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.