ModelMetadataTypeAttribute(Type) 构造函数

定义

初始化 ModelMetadataTypeAttribute 类的新实例。

public:
 ModelMetadataTypeAttribute(Type ^ type);
public ModelMetadataTypeAttribute (Type type);
new Microsoft.AspNetCore.Mvc.ModelMetadataTypeAttribute : Type -> Microsoft.AspNetCore.Mvc.ModelMetadataTypeAttribute
Public Sub New (type As Type)

参数

type
Type

与数据模型类关联的元数据类的类型。

适用于