Tp.MashupManager.Mashup.ValidateNameContainsOnlyValidChars C# (CSharp) Method

ValidateNameContainsOnlyValidChars() protected method

protected ValidateNameContainsOnlyValidChars ( PluginProfileErrorCollection errors ) : void
errors PluginProfileErrorCollection
return 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"
				});
		}