Class ValidationGroup
- Namespace
- Dynamicweb.Ecommerce.Orders.Validation
- Assembly
- Dynamicweb.Ecommerce.dll
The class ValidationGroup represents group of Validation.
[Serializable]
public class ValidationGroup
- Inheritance
-
ValidationGroup
- Inherited Members
Constructors
ValidationGroup()
Initializes a new instance of the ValidationGroup class.
public ValidationGroup()
Properties
DefaultName
public string DefaultName { get; set; }
Property Value
DoNotValidateIfAllFieldsAreEmpty
Do not validate when all fields are empty
public bool DoNotValidateIfAllFieldsAreEmpty { get; set; }
Property Value
Id
Gets or sets validation group id.
public string Id { get; set; }
Property Value
Translations
Gets the translations for the current entity
public TranslationCollection<ValidationGroupTranslation> Translations { get; }
Property Value
Validations
Gets or sets validation group ValidationCollection.
public ValidationCollection Validations { get; set; }
Property Value
Methods
ClearCache()
Clear cached validation groups.
public static void ClearCache()
Delete()
Deletes this validation group and all translations.
public void Delete()
DeleteTranslation(string)
Deletes the translated validation group.
public void DeleteTranslation(string languageId)
Parameters
languageId
string
GetName(string)
public string GetName(string languageId)
Parameters
languageId
string
Returns
GetValidationGroupById(string)
Gets Validation Group by its ID in default language.
public static ValidationGroup GetValidationGroupById(string id)
Parameters
id
stringValidation Group IDs.
Returns
GetValidationGroups()
Gets validation groups collection.
public static ValidationGroupCollection GetValidationGroups()
Returns
GetValidationGroups(List<string>)
Gets validation groups Collection by certain IDs in default language.
public static ValidationGroupCollection GetValidationGroups(List<string> groups)
Parameters
Returns
Save()
Saves this validation group.
public void Save()
SaveTranslation()
public void SaveTranslation()
SetName(string, string)
public void SetName(string languageId, string name)