Tp.MashupManager.Mashup.ValidateNameContainsOnlyValidChars C# (CSharp) Метод

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

protected ValidateNameContainsOnlyValidChars ( PluginProfileErrorCollection errors ) : void
errors PluginProfileErrorCollection
Результат void
		protected void ValidateNameContainsOnlyValidChars(PluginProfileErrorCollection errors)
		{
			if (!ProfileDtoValidator.IsValid(Name))
				errors.Add(new PluginProfileError
				{
					FieldName = NameField,
					Message = "You can only use letters, numbers, space and underscore symbol in Mashup name"
				});
		}