Table of Contents

Class CancellationTokenModelBinder

Namespace
System.Web.Mvc
Assembly
System.Web.Mvc.dll

Provides a mechanism to propagates notification that model binder operations should be canceled.

public class CancellationTokenModelBinder : IModelBinder
Inheritance
CancellationTokenModelBinder
Implements
Inherited Members

Constructors

CancellationTokenModelBinder()

Initializes a new instance of the CancellationTokenModelBinder class.

public CancellationTokenModelBinder()

Methods

BindModel(ControllerContext, ModelBindingContext)

Returns the default cancellation token.

public object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext)

Parameters

controllerContext ControllerContext

The controller context.

bindingContext ModelBindingContext

The binding context.

Returns

object

The default cancellation token.ImplementsBindModel(ControllerContext, ModelBindingContext)