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 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應