ValidatingViewModelBase, classe
Un modèle de vue qui prennent en charge la validation.
Hiérarchie d'héritage
System.Object
Microsoft.TeamFoundation.MVVM.NotifyPropertyChangedDispatcherObject
Microsoft.TeamFoundation.MVVM.ViewModelBase
Microsoft.TeamFoundation.MVVM.ValidatingViewModelBase
Microsoft.TeamFoundation.MVVM.WindowViewModel
Espace de noms : Microsoft.TeamFoundation.MVVM
Assembly : Microsoft.TeamFoundation.Controls (dans Microsoft.TeamFoundation.Controls.dll)
Syntaxe
'Déclaration
Public Class ValidatingViewModelBase _
Inherits ViewModelBase _
Implements IDataErrorInfo
public class ValidatingViewModelBase : ViewModelBase,
IDataErrorInfo
Le type ValidatingViewModelBase expose les membres suivants.
Constructeurs
Nom | Description | |
---|---|---|
ValidatingViewModelBase(ViewModelBase) | ||
ValidatingViewModelBase(Dispatcher, ViewModelBase) |
Début
Propriétés
Nom | Description | |
---|---|---|
Dispatcher | Répartiteur associé à cet objet. (Hérité de NotifyPropertyChangedDispatcherObject.) | |
MessageBoxService | (Hérité de ViewModelBase.) | |
ParentViewModel | (Hérité de ViewModelBase.) | |
UIHostService | (Hérité de ViewModelBase.) | |
ValidationRules | Une collection de règles de validation. | |
WindowDisplayService | (Hérité de ViewModelBase.) |
Début
Méthodes
Nom | Description | |
---|---|---|
AddDependencySource(String, INotifyCollectionChanged) | (Hérité de NotifyPropertyChangedDispatcherObject.) | |
AddDependencySource(String, INotifyPropertyChanged) | (Hérité de NotifyPropertyChangedDispatcherObject.) | |
CheckAccess | (Hérité de NotifyPropertyChangedDispatcherObject.) | |
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.) | |
CheckAccessExecute(Action) | Exécute l'action spécifiée sur un thread associé avec le répartiteur de l'objet. (Hérité de NotifyPropertyChangedDispatcherObject.) | |
CheckAccessExecute<TResult>(Func<TResult>) | (Hérité de NotifyPropertyChangedDispatcherObject.) | |
Equals | Détermine si l'objet spécifié est identique à l'objet actuel. (Hérité de Object.) | |
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.) | |
GetDependencySourceName(INotifyCollectionChanged) | (Hérité de NotifyPropertyChangedDispatcherObject.) | |
GetDependencySourceName(INotifyPropertyChanged) | (Hérité de NotifyPropertyChangedDispatcherObject.) | |
GetHashCode | Sert de fonction de hachage pour un type particulier. (Hérité de Object.) | |
GetType | Obtient le Type de l'instance actuelle. (Hérité de Object.) | |
GetWaitCursor | (Hérité de ViewModelBase.) | |
HasErrors | Contrôle si au moins une règle de validation est interrompue. | |
MemberwiseClone | Crée une copie superficielle de l'objet Object actuel. (Hérité de Object.) | |
RaisePropertyChanged | (Hérité de ViewModelBase.) | |
ReceiveWeakEvent | (Hérité de NotifyPropertyChangedDispatcherObject.) | |
RegisterService | (Hérité de ViewModelBase.) | |
RegisterServices | (Hérité de ViewModelBase.) | |
RemoveDependencySource(String, INotifyCollectionChanged) | (Hérité de NotifyPropertyChangedDispatcherObject.) | |
RemoveDependencySource(String, INotifyPropertyChanged) | (Hérité de NotifyPropertyChangedDispatcherObject.) | |
ResolveService<TService> | Résout le service. (Hérité de ViewModelBase.) | |
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.) | |
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.) | |
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.) | |
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.) | |
ToString | Retourne une chaîne qui représente l'objet actif. (Hérité de Object.) | |
TryResolveService(Type) | (Hérité de ViewModelBase.) | |
TryResolveService<TService>() | (Hérité de ViewModelBase.) | |
UnRegisterService | (Hérité de ViewModelBase.) | |
UnRegisterServices | (Hérité de ViewModelBase.) | |
VerifyAccess | Garantit que le thread appelant a accès à cet objet. (Hérité de NotifyPropertyChangedDispatcherObject.) |
Début
Événements
Nom | Description | |
---|---|---|
PropertyChanged | Se produit en cas de modification d'une valeur de propriété. (Hérité de NotifyPropertyChangedDispatcherObject.) |
Début
Implémentations d'interface explicite
Nom | Description | |
---|---|---|
IDataErrorInfo.Error | Obtient un message d'erreur indiquant le problème lié à cet objet. | |
IDataErrorInfo.Item | Obtient le message d'erreur pour la propriété portant le nom spécifié. | |
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.