Channel9Downloader.ViewModels.Framework.ValidatingObject.AddError C# (CSharp) Метод

AddError() защищенный Метод

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.
Результат void
        protected void AddError(string propertyName, string message)
        {
            if (!_errors.ContainsKey(propertyName))
            {
                _errors[propertyName] = message;
            }
        }