ModelMetadata Constructor
Initializes a new instance of the ModelMetadata class.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
'Declaration Public Sub New ( _ provider As ModelMetadataProvider, _ containerType As Type, _ modelAccessor As Func(Of Object), _ modelType As Type, _ propertyName As String _ ) 'Usage Dim provider As ModelMetadataProvider Dim containerType As Type Dim modelAccessor As Func(Of Object) Dim modelType As Type Dim propertyName As String Dim instance As New ModelMetadata(provider, _ containerType, modelAccessor, modelType, _ propertyName)
Parameters
- provider
- Type: System.Web.Mvc.ModelMetadataProvider
The provider.
- containerType
- Type: System.Type
The type of the container.
- modelAccessor
- Type: System.Func(Of Object)
The model accessor.
- modelType
- Type: System.Type
The type of the model.
- propertyName
- Type: System.String
The name of the model.
Show: