Метод | Описание | |
---|---|---|
CleanUp ( ) : void |
Cleans up the information by unsubscribing from all events.
|
|
ClearDefaultErrors ( string propertyName ) : void |
Updates the default errors. This method is required when errors are initialize via InitializeDefaultErrors. This method checks whether default errors were added for a specific property (or at entity level if propertyName is string.Empty or
|
|
GetErrors ( string propertyName ) : IEnumerable |
Gets the errors for the specificied propertyName.
|
|
GetWarnings ( string propertyName ) : IEnumerable |
Gets the warnings for the specificied propertyName.
|
|
InitializeDefaultErrors ( IEnumerable |
Initializes the default errors.
|
|
ModelErrorInfo ( object model ) : System |
Initializes a new instance of the ModelErrorInfo class.
|
Метод | Описание | |
---|---|---|
GetValidationString ( object obj ) : string |
Gets the validation string from the object. This method supports the following types:
|
|
HandleBusinessRuleErrors ( IEnumerable errors ) : void |
Handles the business rule errors.
|
|
HandleBusinessRuleWarnings ( IEnumerable warnings ) : void |
Handles the business rule warnings.
|
|
HandleFieldErrors ( string propertyName, IEnumerable errors ) : void |
Handles the field errors.
|
|
HandleFieldWarnings ( string propertyName, IEnumerable warnings ) : void |
Handles the field warnings.
|
|
OnModelErrorsChanged ( object sender, System.ComponentModel.DataErrorsChangedEventArgs e ) : void |
Called when the errors on the model have changed.
|
|
OnModelPropertyChanged ( object sender, |
Called when a property on the model has changed.
|
|
OnModelWarningsChanged ( object sender, System.ComponentModel.DataErrorsChangedEventArgs e ) : void |
Called when the warnings on the model have changed.
|
public ClearDefaultErrors ( string propertyName ) : void | ||
propertyName | string | Name of the property. |
Результат | void |
public GetErrors ( string propertyName ) : IEnumerable |
||
propertyName | string | Name of the property. |
Результат | IEnumerable |
public GetWarnings ( string propertyName ) : IEnumerable |
||
propertyName | string | Name of the property. |
Результат | IEnumerable |
public InitializeDefaultErrors ( IEnumerable |
||
validationResults | IEnumerable |
The validation results. |
Результат | void |
public ModelErrorInfo ( object model ) : System | ||
model | object | The model. |
Результат | System |