Class XFormValidatorProvider
XForm validation provider
Inheritance
System.Object
XFormValidatorProvider
Namespace: EPiServer.Web.Mvc.XForms
Assembly: EPiServer.dll
Version: 8.11.0Syntax
public class XFormValidatorProvider : ModelValidatorProvider
Constructors
XFormValidatorProvider()
Declaration
public XFormValidatorProvider()
Methods
GetValidators(ModelMetadata, ControllerContext)
Validates the context if the metadata model type is XFormPost
Declaration
public override IEnumerable<ModelValidator> GetValidators(ModelMetadata metadata, ControllerContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.ModelMetadata | metadata | The metadata |
System.Web.Mvc.ControllerContext | context | The controller context |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Web.Mvc.ModelValidator> | An xform validator if the model is an xform type |