IModelMetadataProvider.GetMetadataForProperties(Type) 方法

定义

提供描述的属性的元数据 Type

public:
 System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^> ^ GetMetadataForProperties(Type ^ modelType);
public System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata> GetMetadataForProperties (Type modelType);
abstract member GetMetadataForProperties : Type -> seq<Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata>
Public Function GetMetadataForProperties (modelType As Type) As IEnumerable(Of ModelMetadata)

参数

modelType
Type

Type

返回

IEnumerable<ModelMetadata>

描述的属性的一组 ModelMetadata 实例 Type

适用于