C# Class Channel9Downloader.ViewModels.Framework.ValidatingObject

This class serves as base class for objects that support validation.
Inheritance: ObservableObject, IValidatingObject
Afficher le fichier Open project: MadCowDevelopment/Channel9Downloader

Méthodes publiques

Méthode Description
this ( string propertyName ) : string

Gets the error message for the property with the given name.

Méthodes protégées

Méthode Description
AddError ( string propertyName, string message ) : void

Adds an error to the errors dictionary.

ValidateProperty ( string propertyName ) : void

Validates a property.

Private Methods

Méthode Description
OnDeserializing ( StreamingContext context ) : void
RemoveError ( string propertyName ) : void

Removes an error from the errors dictionary.

Method Details

AddError() protected méthode

Adds an error to the errors dictionary.
protected AddError ( string propertyName, string message ) : void
propertyName string Name of the property for which an error should be added.
message string Error message that will be shown to the user.
Résultat void

ValidateProperty() protected méthode

Validates a property.
protected ValidateProperty ( string propertyName ) : void
propertyName string Name of the property to validate.
Résultat void

this() public méthode

Gets the error message for the property with the given name.
public this ( string propertyName ) : string
propertyName string The name of the property whose error message to get.
Résultat string