DefaultModelBinder.GetModelProperties 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用指定的控制器上下文和绑定上下文来返回模型的属性。
protected virtual System.ComponentModel.PropertyDescriptorCollection GetModelProperties (System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext);
abstract member GetModelProperties : System.Web.Mvc.ControllerContext * System.Web.Mvc.ModelBindingContext -> System.ComponentModel.PropertyDescriptorCollection
override this.GetModelProperties : System.Web.Mvc.ControllerContext * System.Web.Mvc.ModelBindingContext -> System.ComponentModel.PropertyDescriptorCollection
Protected Overridable Function GetModelProperties (controllerContext As ControllerContext, bindingContext As ModelBindingContext) As PropertyDescriptorCollection
参数
- controllerContext
- ControllerContext
运行控制器的上下文。 上下文信息包括控制器、HTTP 内容、请求上下文和路由数据。
- bindingContext
- ModelBindingContext
绑定模型的上下文。 上下文包含模型对象、模型名称、模型类型、属性筛选器和值提供程序等信息。
返回
属性描述符的集合。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈