다음을 통해 공유


DefaultModelBinder.GetModelProperties 메서드

정의

지정된 컨트롤러 컨텍스트와 바인딩 컨텍스트를 사용하여 모델의 속성을 반환합니다.

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

모델이 바인딩되는 컨텍스트입니다. 컨텍스트에는 모델 개체, 모델 이름, 모델 형식, 속성 필터, 값 공급자 등의 정보가 포함됩니다.

반환

속성 설명자의 컬렉션입니다.

적용 대상