Share via


ModelMetadata Constructor

Definition

Initializes a new instance of the ModelMetadata class.

public ModelMetadata (System.Web.Mvc.ModelMetadataProvider provider, Type containerType, Func<object> modelAccessor, Type modelType, string propertyName);
new System.Web.Mvc.ModelMetadata : System.Web.Mvc.ModelMetadataProvider * Type * Func<obj> * Type * string -> System.Web.Mvc.ModelMetadata
Public Sub New (provider As ModelMetadataProvider, containerType As Type, modelAccessor As Func(Of Object), modelType As Type, propertyName As String)

Parameters

provider
ModelMetadataProvider

The provider.

containerType
Type

The type of the container.

modelAccessor
Func<Object>

The model accessor.

modelType
Type

The type of the model.

propertyName
String

The name of the model.

Applies to