MutableObjectModelBinder.SetProperty 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置指定属性的值。
protected:
virtual void SetProperty(System::Web::ModelBinding::ModelBindingExecutionContext ^ modelBindingExecutionContext, System::Web::ModelBinding::ModelBindingContext ^ bindingContext, System::Web::ModelBinding::ModelMetadata ^ propertyMetadata, System::Web::ModelBinding::ComplexModelResult ^ complexModelResult);
protected virtual void SetProperty (System.Web.ModelBinding.ModelBindingExecutionContext modelBindingExecutionContext, System.Web.ModelBinding.ModelBindingContext bindingContext, System.Web.ModelBinding.ModelMetadata propertyMetadata, System.Web.ModelBinding.ComplexModelResult complexModelResult);
abstract member SetProperty : System.Web.ModelBinding.ModelBindingExecutionContext * System.Web.ModelBinding.ModelBindingContext * System.Web.ModelBinding.ModelMetadata * System.Web.ModelBinding.ComplexModelResult -> unit
override this.SetProperty : System.Web.ModelBinding.ModelBindingExecutionContext * System.Web.ModelBinding.ModelBindingContext * System.Web.ModelBinding.ModelMetadata * System.Web.ModelBinding.ComplexModelResult -> unit
Protected Overridable Sub SetProperty (modelBindingExecutionContext As ModelBindingExecutionContext, bindingContext As ModelBindingContext, propertyMetadata As ModelMetadata, complexModelResult As ComplexModelResult)
参数
- modelBindingExecutionContext
- ModelBindingExecutionContext
该执行上下文。
- bindingContext
- ModelBindingContext
绑定上下文。
- propertyMetadata
- ModelMetadata
要设置的属性的元数据。
- complexModelResult
- ComplexModelResult
有关该属性的验证信息。