IModelMetadataProvider.GetMetadataForType(Type) 方法

定义

提供描述的元数据 Type

public:
 Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ GetMetadataForType(Type ^ modelType);
public Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata GetMetadataForType (Type modelType);
abstract member GetMetadataForType : Type -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata
Public Function GetMetadataForType (modelType As Type) As ModelMetadata

参数

modelType
Type

Type

返回

ModelMetadata

ModelMetadata描述的实例 Type

适用于