Tp.MashupManager.Mashup.ValidateNameNotEmpty C# (CSharp) Méthode

ValidateNameNotEmpty() protected méthode

protected ValidateNameNotEmpty ( PluginProfileErrorCollection errors ) : void
errors PluginProfileErrorCollection
Résultat void
		protected void ValidateNameNotEmpty(PluginProfileErrorCollection errors)
		{
			if (string.IsNullOrWhiteSpace(Name))
				errors.Add(new PluginProfileError
				{
					FieldName = NameField,
					Message = "Mashup name cannot be empty or consist of whitespace characters only"
				});
		}