共用方式為


ITfsIdentityStore Interface

Manages an identity cache which is loaded from disk and periodically refreshed from the identity management service.

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

Syntax

'Declaration
Public Interface ITfsIdentityStore
public interface ITfsIdentityStore
public interface class ITfsIdentityStore
type ITfsIdentityStore =  interface end
public interface ITfsIdentityStore

The ITfsIdentityStore type exposes the following members.

Properties

  Name Description
Public property AllGlobalAndProjectGroupIdentities Obsolete. Returns all TeamFoundationIdentities associated with global and project groups.
Public property AllUserIdentities Get all user identities cached locally.
Public property AllUserIdentityNames Get all user identities cached locally.
Public property RecentUserNames Get recently used users from TFS

Top

Methods

  Name Description
Public method AddDisplayName Adds the given TeamFoundationId,DisplayName pair to cache
Public method AddDisplayNames Adds the given TeamFoundationId,DisplayName pair to cache
Public method AddRecentUser(TeamFoundationIdentity) Add the given user to RecentUsers
Public method AddRecentUser(Guid) Add the given user to RecentUsers
Public method Close
Public method EnsureIdentitiesByAccountName Ensures the cache has the TeamFoundationIdentity objects for the given set of TeamFoundationIdentity identifiers.
Public method EnsureIdentitiesById Ensures the cache has the TeamFoundationIdentity objects for the given set of TeamFoundationIdentity identifiers.
Public method FindByAccountName Finds the TeamFoundationIdentity associated with the unique account name.
Public method FindByDisplayName Finds the TeamFoundationIdentity associated with the unique display name.
Public method FindByTeamFoundationId Finds the TeamFoundationIdentity associated with the unique Team Foundation id
Public method FindTeamFoundationIdByDisplayName Finds the TeamFoundationIdentity associated with the unique display name.
Public method GetDisplayName Gets the display name of user associated with the unique foundation id
Public method Initialize
Public method Refresh Causes a synchronous refresh of the identity cache.

Top

See Also

Reference

Microsoft.TeamFoundation.TestManagement.Client Namespace