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
- actionContext
Type: System.Web.Http.Controllers.HttpActionContext
The action context.
- bindingContext
Type: System.Web.Http.ModelBinding.ModelBindingContext
The binding context.
Return Value
Type: System.Collections.Generic.IEnumerable<ModelMetadata>
The metadata for properties of the model.