AssociatedMetadataProvider.GetMetadataForProperty Method (Func(Of Object), Type, String)
.NET Framework (current version)
When overridden in a derived class, returns metadata for a property specified by a property name.
Assembly: System.Web (in System.Web.dll)
Public Overrides Function GetMetadataForProperty ( modelAccessor As Func(Of Object), containerType As Type, propertyName As String ) As ModelMetadata
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.
| Exception | Condition |
|---|---|
| ArgumentNullException | The containerType parameter is null. -or- The propertyName parameter is null or empty. -or- A property that has the name specified by propertyName cannot be found in the containerType type. |
.NET Framework
Available since 4.5
Available since 4.5
Show: