MutableObjectModelBinder.GetMetadataForProperties 方法

定义

返回模型的属性元数据。

protected:
 virtual System::Collections::Generic::IEnumerable<System::Web::ModelBinding::ModelMetadata ^> ^ GetMetadataForProperties(System::Web::ModelBinding::ModelBindingExecutionContext ^ modelBindingExecutionContext, System::Web::ModelBinding::ModelBindingContext ^ bindingContext);
protected virtual System.Collections.Generic.IEnumerable<System.Web.ModelBinding.ModelMetadata> GetMetadataForProperties (System.Web.ModelBinding.ModelBindingExecutionContext modelBindingExecutionContext, System.Web.ModelBinding.ModelBindingContext bindingContext);
abstract member GetMetadataForProperties : System.Web.ModelBinding.ModelBindingExecutionContext * System.Web.ModelBinding.ModelBindingContext -> seq<System.Web.ModelBinding.ModelMetadata>
override this.GetMetadataForProperties : System.Web.ModelBinding.ModelBindingExecutionContext * System.Web.ModelBinding.ModelBindingContext -> seq<System.Web.ModelBinding.ModelMetadata>
Protected Overridable Function GetMetadataForProperties (modelBindingExecutionContext As ModelBindingExecutionContext, bindingContext As ModelBindingContext) As IEnumerable(Of ModelMetadata)

参数

modelBindingExecutionContext
ModelBindingExecutionContext

该执行上下文。

bindingContext
ModelBindingContext

绑定上下文。

返回

模型属性的元数据。

适用于