AssociatedMetadataProvider.GetMetadataForProperty Method (Func<Object>, Type, PropertyDescriptor)

.NET Framework (current version)
 

When overridden in a derived class, returns metadata for a property specified by a property descriptor object.

Namespace:   System.Web.ModelBinding
Assembly:  System.Web (in System.Web.dll)

protected virtual ModelMetadata GetMetadataForProperty(
	Func<object> modelAccessor,
	Type containerType,
	PropertyDescriptor propertyDescriptor
)

Parameters

modelAccessor
Type: System.Func<Object>

The model accessor.

containerType
Type: System.Type

The type of the container.

propertyDescriptor
Type: System.ComponentModel.PropertyDescriptor

The property descriptor.

Return Value

Type: System.Web.ModelBinding.ModelMetadata

Metadata for the specified property.

.NET Framework
Available since 4.5
Return to top
Show: