The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
ParameterBindingExtensions::BindAsError Method (HttpParameterDescriptor^, String^)
Binds parameter that results as an error.
Assembly: System.Web.Http (in System.Web.Http.dll)
public: [ExtensionAttribute] static HttpParameterBinding^ BindAsError( 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::HttpParameterBinding^The HTTP parameter binding object.
Show: