Interface ICategoryFieldsManager
Implementing class should provide operations over UI forms categories.
public interface ICategoryFieldsManager
- Extension Methods
Methods
CreateCategory(string, FormCategoryInfo)
Tries to create a new category with data from formCategory.
FieldValidationResult CreateCategory(string className, FormCategoryInfo formCategory)
Parameters
classNamestringClass name or alternative form name of the form the field belongs to.
formCategoryFormCategoryInfoCategory containing the data of the new category.
Returns
- FieldValidationResult
Instance of FieldValidationResult, if the validation result is valid, new category was created. Otherwise it was not and validation result indicates why.
Exceptions
- ArgumentNullException
No category definition was provided.
- InvalidOperationException
The corresponding data class was not found.
UpdateCategory(string, string, FormCategoryInfo)
Tries to update a category given by categoryName with data from formCategory.
FieldValidationResult UpdateCategory(string className, string categoryName, FormCategoryInfo formCategory)
Parameters
classNamestringClass name or alternative form name of the form the field belongs to.
categoryNamestringName of a category that is being updated.
formCategoryFormCategoryInfoCategory which contains updated data.
Returns
- FieldValidationResult
Instance of FieldValidationResult, if the validation result is valid, update was performed. Otherwise it was not and validation result indicates why.
Exceptions
- ArgumentNullException
No category definition provided.
- InvalidOperationException
Unknown
classNameorcategoryNameprovided.