ValidatableObjectAdapter.Validate Method
Validates the specified object.
Namespace: System.Web.Http.Validation.Validators
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Overrides Function Validate ( _
metadata As ModelMetadata, _
container As Object _
) As IEnumerable(Of ModelValidationResult)
'Usage
Dim instance As ValidatableObjectAdapter
Dim metadata As ModelMetadata
Dim container As Object
Dim returnValue As IEnumerable(Of ModelValidationResult)
returnValue = instance.Validate(metadata, _
container)
public override IEnumerable<ModelValidationResult> Validate(
ModelMetadata metadata,
Object container
)
public:
virtual IEnumerable<ModelValidationResult^>^ Validate(
ModelMetadata^ metadata,
Object^ container
) override
abstract Validate :
metadata:ModelMetadata *
container:Object -> IEnumerable<ModelValidationResult>
override Validate :
metadata:ModelMetadata *
container:Object -> IEnumerable<ModelValidationResult>
public override function Validate(
metadata : ModelMetadata,
container : Object
) : IEnumerable<ModelValidationResult>
Parameters
metadata
Type: System.Web.Http.Metadata.ModelMetadataThe metadata.
container
Type: System.ObjectThe container.
Return Value
Type: System.Collections.Generic.IEnumerable<ModelValidationResult>
A list of validation results.