Class JsonDictionaryModelBinder
A model binder for JSON formatted dictionaries.
Inheritance
System.Object
JsonDictionaryModelBinder
Implements
System.Web.Mvc.IModelBinder
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Shell.Services.Rest
Assembly: EPiServer.Shell.dll
Version: 8.11.0Syntax
public class JsonDictionaryModelBinder : IModelBinder
Constructors
JsonDictionaryModelBinder(IObjectSerializerFactory)
Initializes a new instance of the JsonDictionaryModelBinder class.
Declaration
public JsonDictionaryModelBinder(IObjectSerializerFactory serializerFactory)
Parameters
Type | Name | Description |
---|---|---|
IObjectSerializerFactory | serializerFactory | The object serializer factory to use to create a JSON serializer. |
Methods
BindModel(ControllerContext, ModelBindingContext)
Binds the model to a value by using the specified controller context and binding context.
Declaration
public object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.ControllerContext | controllerContext | The controller context. |
System.Web.Mvc.ModelBindingContext | bindingContext | The binding context. |
Returns
Type | Description |
---|---|
System.Object | The bound value as a JsonDictionary. |
Implements
System.Web.Mvc.IModelBinder