Partager via


ViewModelBase, classe

Hiérarchie d'héritage

System.Object
  Microsoft.TeamFoundation.MVVM.NotifyPropertyChangedDispatcherObject
    Microsoft.TeamFoundation.MVVM.ViewModelBase
      Microsoft.TeamFoundation.Controls.WPF.TeamExplorer.Framework.TeamExplorerViewModel
      Microsoft.TeamFoundation.Controls.WPF.TeamExplorer.TeamExplorerPageViewModelBase
      Microsoft.TeamFoundation.Controls.WPF.TeamExplorer.TeamExplorerSectionViewModelBase
      Microsoft.TeamFoundation.MVVM.ValidatingViewModelBase

Espace de noms :  Microsoft.TeamFoundation.MVVM
Assembly :  Microsoft.TeamFoundation.Controls (dans Microsoft.TeamFoundation.Controls.dll)

Syntaxe

'Déclaration
Public MustInherit Class ViewModelBase _
    Inherits NotifyPropertyChangedDispatcherObject
public abstract class ViewModelBase : NotifyPropertyChangedDispatcherObject

Le type ViewModelBase expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique ViewModelBase(ViewModelBase)
Méthode publique ViewModelBase(Dispatcher, ViewModelBase)

Début

Propriétés

  Nom Description
Propriété publique Dispatcher Répartiteur associé à cet objet. (Hérité de NotifyPropertyChangedDispatcherObject.)
Propriété publique MessageBoxService
Propriété publique ParentViewModel
Propriété publique UIHostService
Propriété publique WindowDisplayService

Début

Méthodes

  Nom Description
Méthode protégée AddDependencySource(String, INotifyCollectionChanged) (Hérité de NotifyPropertyChangedDispatcherObject.)
Méthode protégée AddDependencySource(String, INotifyPropertyChanged) (Hérité de NotifyPropertyChangedDispatcherObject.)
Méthode publique CheckAccess (Hérité de NotifyPropertyChangedDispatcherObject.)
Méthode publique CheckAccessBeginExecute Exécute l'action spécifiée sur un thread associé avec le répartiteur de l'objet. Il appelle un BeginInvoke sur le répartiteur, n'attend pas l'action de fin -- est retourné immédiatement. (Hérité de NotifyPropertyChangedDispatcherObject.)
Méthode publique CheckAccessExecute(Action) Exécute l'action spécifiée sur un thread associé avec le répartiteur de l'objet. (Hérité de NotifyPropertyChangedDispatcherObject.)
Méthode publique CheckAccessExecute<TResult>(Func<TResult>) (Hérité de NotifyPropertyChangedDispatcherObject.)
Méthode publique Equals Détermine si l'objet spécifié est identique à l'objet actuel. (Hérité de Object.)
Méthode protégée Finalize Autorise un objet à tenter de libérer des ressources et d'exécuter d'autres opérations de nettoyage avant qu'il ne soit récupéré par l'opération garbage collection. (Hérité de Object.)
Méthode protégée GetDependencySourceName(INotifyCollectionChanged) (Hérité de NotifyPropertyChangedDispatcherObject.)
Méthode protégée GetDependencySourceName(INotifyPropertyChanged) (Hérité de NotifyPropertyChangedDispatcherObject.)
Méthode publique GetHashCode Sert de fonction de hachage pour un type particulier. (Hérité de Object.)
Méthode publique GetType Obtient le Type de l'instance actuelle. (Hérité de Object.)
Méthode publique GetWaitCursor
Méthode protégée MemberwiseClone Crée une copie superficielle de l'objet Object actuel. (Hérité de Object.)
Méthode protégée RaisePropertyChanged (Substitue NotifyPropertyChangedDispatcherObject.RaisePropertyChanged(String).)
Méthode protégée ReceiveWeakEvent (Hérité de NotifyPropertyChangedDispatcherObject.)
Méthode publique RegisterService
Méthode publique RegisterServices
Méthode protégée RemoveDependencySource(String, INotifyCollectionChanged) (Hérité de NotifyPropertyChangedDispatcherObject.)
Méthode protégée RemoveDependencySource(String, INotifyPropertyChanged) (Hérité de NotifyPropertyChangedDispatcherObject.)
Méthode publique ResolveService<TService> Résout le service.
Méthode protégée SetAndRaisePropertyChanged(Boolean%, Boolean, String) Une méthode d'assistance qui valeur de propriété définit et événement PropertyChanged de raise si la valeur a changé. Implémentation optimisée pour le type de System.Boolean. (Hérité de NotifyPropertyChangedDispatcherObject.)
Méthode protégée SetAndRaisePropertyChanged(Int32%, Int32, String) Une méthode d'assistance qui valeur de propriété définit et événement PropertyChanged de raise si la valeur a changé. Implémentation optimisée pour le type System.Int32. (Hérité de NotifyPropertyChangedDispatcherObject.)
Méthode protégée SetAndRaisePropertyChanged(String%, String, String) Une méthode d'assistance qui valeur de propriété définit et événement PropertyChanged de raise si la valeur a changé. Implémentation optimisée pour le type chaîne. (Hérité de NotifyPropertyChangedDispatcherObject.)
Méthode protégée SetAndRaisePropertyChanged<T>(T%, T, String) Une méthode d'assistance qui valeur de propriété définit et événement PropertyChanged de raise si la valeur a changé. (Hérité de NotifyPropertyChangedDispatcherObject.)
Méthode publique ToString Retourne une chaîne qui représente l'objet actif. (Hérité de Object.)
Méthode publique TryResolveService(Type)
Méthode publique TryResolveService<TService>()
Méthode publique UnRegisterService
Méthode publique UnRegisterServices
Méthode protégée VerifyAccess Garantit que le thread appelant a accès à cet objet. (Hérité de NotifyPropertyChangedDispatcherObject.)

Début

Événements

  Nom Description
Événement public PropertyChanged Se produit en cas de modification d'une valeur de propriété. (Hérité de NotifyPropertyChangedDispatcherObject.)

Début

Champs

  Nom Description
Champ publicMembre statique ParentViewModelProperty

Début

Implémentations d'interface explicite

  Nom Description
Implémentation d'interface expliciteMéthode privée IWeakEventListener.ReceiveWeakEvent (Hérité de NotifyPropertyChangedDispatcherObject.)

Début

Sécurité des threads

Tous les membres static (Shared en Visual Basic) publics de ce type sont thread-safe. Il n'est pas garanti que les membres d'instance soient thread-safe.

Voir aussi

Référence

Microsoft.TeamFoundation.MVVM, espace de noms