Click or drag to resize
ValidationRuleConfigurationsXmlSerializerSerialize Method (IEnumerableValidationRuleConfiguration)
Serializes a collection of validation rule configurations to an XML string.

Namespace: Kentico.Forms.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
public virtual string Serialize(
	IEnumerable<ValidationRuleConfiguration> validationRuleConfigurations
)

Parameters

validationRuleConfigurations
Type: System.Collections.GenericIEnumerableValidationRuleConfiguration
Validation rule configurations to be serialized.

Return Value

Type: String
Returns an XML representation of the rules.

Implements

IValidationRuleConfigurationsXmlSerializerSerialize(IEnumerableValidationRuleConfiguration)
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when validationRuleConfigurations is null.
See Also