ResourceModelBinder Class

 

Represents the ModelBinder implementation that augments the inner model binder with support for binding to other formats - XML and JSON by default.

Namespace:   Microsoft.Web.Mvc.Resources
Assembly:  Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)

Inheritance Hierarchy

System.Object
  Microsoft.Web.Mvc.Resources.ResourceModelBinder

Syntax

public class ResourceModelBinder : IModelBinder
public ref class ResourceModelBinder : IModelBinder
type ResourceModelBinder = 
    class
        interface IModelBinder
    end
Public Class ResourceModelBinder
    Implements IModelBinder

Constructors

Name Description
System_CAPS_pubmethod ResourceModelBinder()

Wraps the ModelBinders.Binders.DefaultBinder.

System_CAPS_pubmethod ResourceModelBinder(IModelBinder)

Initializes a new instance of the ResourceModelBinder class.

Methods

Name Description
System_CAPS_pubmethod BindModel(ControllerContext, ModelBindingContext)

Binds the model to a value by using the specified controller context and binding context.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod TryBindModel(ControllerContext, ModelBindingContext, ContentType, Object)

Returns true if the specified controller context, binding context, request format and model object can be bind to a model.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Web.Mvc.Resources Namespace

Return to top