共用方式為


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

繫結內容。

傳回

模型屬性的中繼資料。

適用於