ModelMetadataTypeAttribute Class¶
Inheritance Hierarchy¶
System.Object
System.Attribute
Microsoft.AspNet.Mvc.ModelMetadataTypeAttribute
Constructors¶
-
ModelMetadataTypeAttribute
(System.Type)¶ Initializes a new instance of the [Microsoft.AspNet.Mvc.ModelMetadataTypeAttribute](Microsoft.AspNet.Mvc.ModelMetadataTypeAttribute.yml) class.
Arguments: - type (System.Type) – The type of metadata class that is associated with a data model class.
public ModelMetadataTypeAttribute(Type type)
-
Properties¶
-
MetadataType
()¶ Gets the type of metadata class that is associated with a data model class.
Return type: System.Type public Type MetadataType { get; }
-