Partilhar via


MutableObjectModelBinder.GetMetadataForProperties Method

Retrieves metadata for properties of the model.

Namespace:  System.Web.Http.ModelBinding.Binders
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Protected Overridable Function GetMetadataForProperties ( _
    actionContext As HttpActionContext, _
    bindingContext As ModelBindingContext _
) As IEnumerable(Of ModelMetadata)
'Usage
Dim actionContext As HttpActionContext
Dim bindingContext As ModelBindingContext
Dim returnValue As IEnumerable(Of ModelMetadata)

returnValue = Me.GetMetadataForProperties(actionContext, _
    bindingContext)
protected virtual IEnumerable<ModelMetadata> GetMetadataForProperties(
    HttpActionContext actionContext,
    ModelBindingContext bindingContext
)
protected:
virtual IEnumerable<ModelMetadata^>^ GetMetadataForProperties(
    HttpActionContext^ actionContext, 
    ModelBindingContext^ bindingContext
)
abstract GetMetadataForProperties : 
        actionContext:HttpActionContext * 
        bindingContext:ModelBindingContext -> IEnumerable<ModelMetadata> 
override GetMetadataForProperties : 
        actionContext:HttpActionContext * 
        bindingContext:ModelBindingContext -> IEnumerable<ModelMetadata> 
protected function GetMetadataForProperties(
    actionContext : HttpActionContext, 
    bindingContext : ModelBindingContext
) : IEnumerable<ModelMetadata>

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<ModelMetadata>
The metadata for properties of the model.

See Also

Reference

MutableObjectModelBinder Class

System.Web.Http.ModelBinding.Binders Namespace