ModelValidationRequiredMemberSelector Constructor
Initializes a new instance of the ModelValidationRequiredMemberSelector class.
Namespace: System.Web.Http.Validation
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Sub New ( _
metadataProvider As ModelMetadataProvider, _
validatorProviders As IEnumerable(Of ModelValidatorProvider) _
)
'Usage
Dim metadataProvider As ModelMetadataProvider
Dim validatorProviders As IEnumerable(Of ModelValidatorProvider)
Dim instance As New ModelValidationRequiredMemberSelector(metadataProvider, _
validatorProviders)
public ModelValidationRequiredMemberSelector(
ModelMetadataProvider metadataProvider,
IEnumerable<ModelValidatorProvider> validatorProviders
)
public:
ModelValidationRequiredMemberSelector(
ModelMetadataProvider^ metadataProvider,
IEnumerable<ModelValidatorProvider^>^ validatorProviders
)
new :
metadataProvider:ModelMetadataProvider *
validatorProviders:IEnumerable<ModelValidatorProvider> -> ModelValidationRequiredMemberSelector
public function ModelValidationRequiredMemberSelector(
metadataProvider : ModelMetadataProvider,
validatorProviders : IEnumerable<ModelValidatorProvider>
)
Parameters
metadataProvider
Type: System.Web.Http.Metadata.ModelMetadataProviderThe metadata provider.
validatorProviders
Type: System.Collections.Generic.IEnumerable<ModelValidatorProvider>The validator providers.