TeamProjectPicker Class

Provides a dialog to select a collection of TeamFoundation projects.


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

public class TeamProjectPicker : IDisposable

The TeamProjectPicker type exposes the following members.

Public methodTeamProjectPicker()Initializes a new TeamProjectPicker instance to select a single project.
Public methodTeamProjectPicker(TeamProjectPickerMode, Boolean)Initializes a new TeamProjectPicker instance.
Public methodTeamProjectPicker(TeamProjectPickerMode, Boolean, ICredentialsProvider)Initializes a new TeamProjectPicker instance.

Public propertyAcceptButtonTextGets or sets the label of the “Accept” button.
Public propertyAutoCommitConnectionChangesSpecifies if the project picker should automatically update cached connection information on positive completion of the dialog after cancellation handlers have had an opportunity to intervene.
Public propertyHasNewCredentialsIndicate that the selected connection has been re-authenticated and the new credentials could be different from the cached one.
Public propertyHelpTopicGets or sets the help topic link of the dialog window.
Public propertyHostActiveTeamProjectCollectionGets or sets the current active team project collection.
Public propertySelectedProjectsGets or sets the default selected projects in the dialog window.
Public propertySelectedTeamProjectCollectionGets or sets the selected team project collection.
Public propertyTextGets or sets the title of the dialog window.

Public methodStatic memberCommitConnectionChange(TfsTeamProjectCollection)
Public methodStatic memberCommitConnectionChange(TfsTeamProjectCollection, Boolean)Commit the connection changes to the local storage and in-memory cache and persist the credentials to the token storage.
Public methodDispose()Alerts parent windows of disposal and disposes of the dialog window.
Protected methodDispose(Boolean)
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalize (Overrides Object.Finalize().)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSetDefaultSelectionProviderSets the default selection provider.
Public methodShowDialog()Displays the project selection dialog.
Public methodShowDialog(IWin32Window)Displays the project selection dialog.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

Public eventAcceptButtonClickEvent for when the “Accept” button is clicked.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.