ModelMetadataIdentity.ForType(Type) 方法

定义

ModelMetadataIdentity为提供的模型 Type创建 。

public:
 static Microsoft::AspNetCore::Mvc::ModelBinding::Metadata::ModelMetadataIdentity ForType(Type ^ modelType);
public static Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity ForType (Type modelType);
static member ForType : Type -> Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity
Public Shared Function ForType (modelType As Type) As ModelMetadataIdentity

参数

modelType
Type

模型 Type

返回

一个 ModelMetadataIdentity

适用于