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 | |
---|---|---|
ResourceModelBinder() | Wraps the ModelBinders.Binders.DefaultBinder. |
|
ResourceModelBinder(IModelBinder) | Initializes a new instance of the ResourceModelBinder class. |
Methods
Name | Description | |
---|---|---|
BindModel(ControllerContext, ModelBindingContext) | Binds the model to a value by using the specified controller context and binding context. |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
ToString() | (Inherited from Object.) |
|
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