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)

<ExtensionAttribute>
Public Shared Function BindAsError (
	parameter As HttpParameterDescriptor,
	message As String
) As HttpParameterBinding

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: