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)
Syntax
public static HttpParameterBinding BindAsError(
this HttpParameterDescriptor parameter,
string message
)
public:
[ExtensionAttribute]
static HttpParameterBinding^ BindAsError(
HttpParameterDescriptor^ parameter,
String^ message
)
static member BindAsError :
parameter:HttpParameterDescriptor *
message:string -> HttpParameterBinding
<ExtensionAttribute>
Public Shared Function BindAsError (
parameter As HttpParameterDescriptor,
message As String
) As HttpParameterBinding
Parameters
parameter
Type: System.Web.Http.Controllers.HttpParameterDescriptorThe parameter descriptor that describes the parameter to bind.
message
Type: System.StringThe error message that describes the reason for fail bind.
Return Value
Type: System.Web.Http.Controllers.HttpParameterBinding
The HTTP parameter binding object.
See Also
ParameterBindingExtensions Class
System.Web.Http.Controllers Namespace
Return to top