DataAnnotationsModelMetadataProvider.CreateMetadata Method (IEnumerable(Of Attribute), Type, Func(Of Object), Type, String)
Gets the metadata for the specified property.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Protected Overrides Function CreateMetadata ( attributes As IEnumerable(Of Attribute), containerType As Type, modelAccessor As Func(Of Object), modelType As Type, propertyName As String ) As ModelMetadata
Parameters
- attributes
-
Type:
System.Collections.Generic.IEnumerable(Of Attribute)
The attributes.
- 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 property.
Show: