Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
BindAsError Method

ParameterBindingExtensions::BindAsError Method (HttpParameterDescriptor^, String^)

 

Binds parameter that results as an error.

Namespace:   System.Web.Http.Controllers
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.

Return to top
Show:
© 2015 Microsoft