AssociatedMetadataProvider.CreateMetadata Method (IEnumerable(Of Attribute), Type, Func(Of Object), Type, String)
.NET Framework (current version)
When overridden in a derived class, creates metadata for a model.
Assembly: System.Web (in System.Web.dll)
Protected MustOverride 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, or null if there is no 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, or null if the model is not a property.
.NET Framework
Available since 4.5
Available since 4.5
Show: