ModelValidatorProviderContext 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
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))
參數
- modelMetadata
- ModelMetadata
- items
- IList<ValidatorItem>
ValidatorItem 的清單。