IMetadataBasedModelValidatorProvider.HasValidators Method

Definition

Gets a value that determines if the IModelValidatorProvider can produce any validators given the modelType and modelType.

public:
 bool HasValidators(Type ^ modelType, System::Collections::Generic::IList<System::Object ^> ^ validatorMetadata);
public bool HasValidators (Type modelType, System.Collections.Generic.IList<object> validatorMetadata);
abstract member HasValidators : Type * System.Collections.Generic.IList<obj> -> bool
Public Function HasValidators (modelType As Type, validatorMetadata As IList(Of Object)) As Boolean

Parameters

modelType
Type

The Type of the model.

validatorMetadata
IList<Object>

The list of metadata items for validators. .

Returns

Applies to