Click or drag to resize
IValidationRuleConfigurationsXmlSerializerSerialize Method
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: 12.0.0
Syntax
C#
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.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when validationRuleConfigurations is null.
See Also