ParameterBindingExtensions.BindAsError Method
Binds parameter that results as an error.
Namespace: System.Web.Http.Controllers
Assembly: System.Web.Http (in System.Web.Http.dll)
public static HttpParameterBinding BindAsError( this HttpParameterDescriptor parameter, string message )
Parameters
- parameter
- Type: System.Web.Http.Controllers.HttpParameterDescriptor
The parameter descriptor that describes the parameter to bind.
- message
- Type: System.String
The error message that describes the reason for fail bind.
Return Value
Type: System.Web.Http.Controllers.HttpParameterBindingThe HTTP parameter binding object.