DataAnnotationsModelMetadataProvider.CreateMetadata Method
Visual Studio 2010
Gets the metadata for the specified property.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
'Declaration 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.
Community Additions
ADD
Show: