MutableObjectModelBinder.SetProperty Method
Sets the value of a specified property.
Namespace: System.Web.Http.ModelBinding.Binders
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Protected Overridable Sub SetProperty ( _
actionContext As HttpActionContext, _
bindingContext As ModelBindingContext, _
propertyMetadata As ModelMetadata, _
dtoResult As ComplexModelDtoResult, _
requiredValidator As ModelValidator _
)
'Usage
Dim actionContext As HttpActionContext
Dim bindingContext As ModelBindingContext
Dim propertyMetadata As ModelMetadata
Dim dtoResult As ComplexModelDtoResult
Dim requiredValidator As ModelValidator
Me.SetProperty(actionContext, bindingContext, _
propertyMetadata, dtoResult, requiredValidator)
protected virtual void SetProperty(
HttpActionContext actionContext,
ModelBindingContext bindingContext,
ModelMetadata propertyMetadata,
ComplexModelDtoResult dtoResult,
ModelValidator requiredValidator
)
protected:
virtual void SetProperty(
HttpActionContext^ actionContext,
ModelBindingContext^ bindingContext,
ModelMetadata^ propertyMetadata,
ComplexModelDtoResult^ dtoResult,
ModelValidator^ requiredValidator
)
abstract SetProperty :
actionContext:HttpActionContext *
bindingContext:ModelBindingContext *
propertyMetadata:ModelMetadata *
dtoResult:ComplexModelDtoResult *
requiredValidator:ModelValidator -> unit
override SetProperty :
actionContext:HttpActionContext *
bindingContext:ModelBindingContext *
propertyMetadata:ModelMetadata *
dtoResult:ComplexModelDtoResult *
requiredValidator:ModelValidator -> unit
protected function SetProperty(
actionContext : HttpActionContext,
bindingContext : ModelBindingContext,
propertyMetadata : ModelMetadata,
dtoResult : ComplexModelDtoResult,
requiredValidator : ModelValidator
)
Parameters
actionContext
Type: System.Web.Http.Controllers.HttpActionContextThe action context.
bindingContext
Type: System.Web.Http.ModelBinding.ModelBindingContextThe binding context.
propertyMetadata
Type: System.Web.Http.Metadata.ModelMetadataThe metadata for the property to set.
dtoResult
Type: System.Web.Http.ModelBinding.Binders.ComplexModelDtoResultThe validation information about the property.
requiredValidator
Type: System.Web.Http.Validation.ModelValidatorThe validator for the model.