Class ErrorParameterBinding
- Namespace
- System.Web.Http.ModelBinding
- Assembly
- System.Web.Http.dll
Defines a binding error.
public class ErrorParameterBinding : HttpParameterBinding
- Inheritance
-
ErrorParameterBinding
- Inherited Members
Constructors
ErrorParameterBinding(HttpParameterDescriptor, string)
Initializes a new instance of the ErrorParameterBinding class.
public ErrorParameterBinding(HttpParameterDescriptor descriptor, string message)
Parameters
descriptor
HttpParameterDescriptorThe error descriptor.
message
stringThe message.
Properties
ErrorMessage
Gets the error message.
public override string ErrorMessage { get; }
Property Value
- string
The error message.
Methods
ExecuteBindingAsync(ModelMetadataProvider, HttpActionContext, CancellationToken)
Executes the binding method during synchronization.
public override Task ExecuteBindingAsync(ModelMetadataProvider metadataProvider, HttpActionContext actionContext, CancellationToken cancellationToken)
Parameters
metadataProvider
ModelMetadataProviderThe metadata provider.
actionContext
HttpActionContextThe action context.
cancellationToken
CancellationTokenThe cancellation Token value.