Table of Contents

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 HttpParameterDescriptor

The error descriptor.

message string

The 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 ModelMetadataProvider

The metadata provider.

actionContext HttpActionContext

The action context.

cancellationToken CancellationToken

The cancellation Token value.

Returns

Task