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;
            }
        }