共用方式為


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

適用於