RequiredMemberModelValidatorProvider.GetValidators Method
Gets the validator for the member model.
Namespace: System.Web.Http.Validation.Providers
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Overrides Function GetValidators ( _
metadata As ModelMetadata, _
validatorProviders As IEnumerable(Of ModelValidatorProvider) _
) As IEnumerable(Of ModelValidator)
'Usage
Dim instance As RequiredMemberModelValidatorProvider
Dim metadata As ModelMetadata
Dim validatorProviders As IEnumerable(Of ModelValidatorProvider)
Dim returnValue As IEnumerable(Of ModelValidator)
returnValue = instance.GetValidators(metadata, _
validatorProviders)
public override IEnumerable<ModelValidator> GetValidators(
ModelMetadata metadata,
IEnumerable<ModelValidatorProvider> validatorProviders
)
public:
virtual IEnumerable<ModelValidator^>^ GetValidators(
ModelMetadata^ metadata,
IEnumerable<ModelValidatorProvider^>^ validatorProviders
) override
abstract GetValidators :
metadata:ModelMetadata *
validatorProviders:IEnumerable<ModelValidatorProvider> -> IEnumerable<ModelValidator>
override GetValidators :
metadata:ModelMetadata *
validatorProviders:IEnumerable<ModelValidatorProvider> -> IEnumerable<ModelValidator>
public override function GetValidators(
metadata : ModelMetadata,
validatorProviders : IEnumerable<ModelValidatorProvider>
) : IEnumerable<ModelValidator>
Parameters
metadata
Type: System.Web.Http.Metadata.ModelMetadataThe metadata.
validatorProviders
Type: System.Collections.Generic.IEnumerable<ModelValidatorProvider>The validator providers
Return Value
Type: System.Collections.Generic.IEnumerable<ModelValidator>
The validator for the member model.