DefaultModelBinder.GetTypeDescriptor Method

Definition

Returns the descriptor object for a type that is specified by its controller context and binding context.

protected virtual System.ComponentModel.ICustomTypeDescriptor GetTypeDescriptor (System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext);
abstract member GetTypeDescriptor : System.Web.Mvc.ControllerContext * System.Web.Mvc.ModelBindingContext -> System.ComponentModel.ICustomTypeDescriptor
override this.GetTypeDescriptor : System.Web.Mvc.ControllerContext * System.Web.Mvc.ModelBindingContext -> System.ComponentModel.ICustomTypeDescriptor
Protected Overridable Function GetTypeDescriptor (controllerContext As ControllerContext, bindingContext As ModelBindingContext) As ICustomTypeDescriptor

Parameters

controllerContext
ControllerContext

The context within which the controller operates. The context information includes the controller, HTTP content, request context, and route data.

bindingContext
ModelBindingContext

The context within which the model is bound. The context includes information such as the model object, model name, model type, property filter, and value provider.

Returns

A custom type descriptor object.

Applies to