Share via


ModelValidatorProviderContext Class

Definition

A context for IModelValidatorProvider.

public ref class ModelValidatorProviderContext
public class ModelValidatorProviderContext
type ModelValidatorProviderContext = class
Public Class ModelValidatorProviderContext
Inheritance
ModelValidatorProviderContext

Constructors

ModelValidatorProviderContext(ModelMetadata, IList<ValidatorItem>)

Creates a new ModelValidatorProviderContext.

Properties

ModelMetadata

Gets the ModelMetadata.

Results

Gets the list of ValidatorItem instances. IModelValidatorProvider instances should add the appropriate Validator properties when CreateValidators(ModelValidatorProviderContext) is called.

ValidatorMetadata

Gets the validator metadata.

Applies to