Class JsonDictionaryModelBinderProvider
Provides an JsonDictionaryModelBinder for models of type JsonDictionary.
Inheritance
System.Object
JsonDictionaryModelBinderProvider
Implements
System.Web.Mvc.IModelBinderProvider
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 JsonDictionaryModelBinderProvider : IModelBinderProvider
Constructors
JsonDictionaryModelBinderProvider(IServiceLocator)
Initializes a new instance of the JsonDictionaryModelBinderProvider class.
Declaration
public JsonDictionaryModelBinderProvider(IServiceLocator serviceLocator)
Parameters
Type | Name | Description |
---|---|---|
IServiceLocator | serviceLocator | The service locator to use to create the model binder. |
Methods
GetBinder(Type)
Gets an instance of a JsonDictionaryModelBinder if the requested type inherits from JsonDictionary.
Declaration
public IModelBinder GetBinder(Type modelType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | modelType | Type of the requested model. |
Returns
Type | Description |
---|---|
System.Web.Mvc.IModelBinder | An instance of JsonDictionaryModelBinder if the model type inherits JsonDictionary; otherwise null. |
Implements
System.Web.Mvc.IModelBinderProvider