AssociatedMetadataProvider.GetMetadataForProperty Method (Func(Of Object), Type, String)
Returns the metadata for the specified property using the container type and property name.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
'Declaration Public Overrides Function GetMetadataForProperty ( _ modelAccessor As Func(Of Object), _ containerType As Type, _ propertyName As String _ ) As ModelMetadata 'Usage Dim instance As AssociatedMetadataProvider Dim modelAccessor As Func(Of Object) Dim containerType As Type Dim propertyName As String Dim returnValue As ModelMetadata returnValue = instance.GetMetadataForProperty(modelAccessor, _ containerType, propertyName)
Parameters
- modelAccessor
- Type: System.Func(Of Object)
The model accessor.
- containerType
- Type: System.Type
The type of the container.
- propertyName
- Type: System.String
The name of the property.
Return Value
Type: System.Web.Mvc.ModelMetadataThe metadata for the specified property using the container type and property name.
Show: