ModelValidatorProviderContext Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new ModelValidatorProviderContext.
public:
ModelValidatorProviderContext(Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ modelMetadata, System::Collections::Generic::IList<Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ValidatorItem ^> ^ items);
public ModelValidatorProviderContext (Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata modelMetadata, System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidatorItem> items);
new Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidatorProviderContext : Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidatorItem> -> Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidatorProviderContext
Public Sub New (modelMetadata As ModelMetadata, items As IList(Of ValidatorItem))
Parameters
- modelMetadata
- ModelMetadata
The ModelMetadata.
- items
- IList<ValidatorItem>
The list of ValidatorItems.