IValidationRuleConfigurationsXmlSerializerSerialize Method |
Serializes a collection of validation rule configurations to an XML string.
Namespace: Kentico.Forms.Web.MvcAssembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax string Serialize(
IEnumerable<ValidationRuleConfiguration> validationRuleConfigurations
)
Parameters
- validationRuleConfigurations
- Type: System.Collections.GenericIEnumerableValidationRuleConfiguration
Validation rule configurations to be serialized.
Return Value
Type:
StringReturns an XML representation of the rules.
Exceptions Exception | Condition |
---|
ArgumentNullException | Thrown when validationRuleConfigurations is null. |
See Also