ModelMetadataTypeAttribute Class

Summary

This attribute specifies the metadata class to associate with a data model class.

Syntax

public class ModelMetadataTypeAttribute : Attribute, _Attribute

GitHub

View on GitHub

class 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; }