AssociatedMetadataProvider.GetMetadataForProperty AssociatedMetadataProvider.GetMetadataForProperty AssociatedMetadataProvider.GetMetadataForProperty Method

Definition

Overloads

GetMetadataForProperty(Func<Object>, Type, PropertyDescriptor) GetMetadataForProperty(Func<Object>, Type, PropertyDescriptor)

Returns the metadata for the specified property using the container type and property descriptor.

GetMetadataForProperty(Func<Object>, Type, String) GetMetadataForProperty(Func<Object>, Type, String) GetMetadataForProperty(Func<Object>, Type, String)

Returns the metadata for the specified property using the container type and property name.

GetMetadataForProperty(Func<Object>, Type, PropertyDescriptor) GetMetadataForProperty(Func<Object>, Type, PropertyDescriptor)

Returns the metadata for the specified property using the container type and property descriptor.

protected virtual System.Web.Mvc.ModelMetadata GetMetadataForProperty (Func<object> modelAccessor, Type containerType, System.ComponentModel.PropertyDescriptor propertyDescriptor);
override this.GetMetadataForProperty : Func<obj> * Type * System.ComponentModel.PropertyDescriptor -> System.Web.Mvc.ModelMetadata

Parameters

modelAccessor
Func<Object>

The model accessor.

containerType
Type Type Type

The type of the container.

propertyDescriptor
PropertyDescriptor PropertyDescriptor PropertyDescriptor

The property descriptor

Returns

The metadata for the specified property using the container type and property descriptor.

GetMetadataForProperty(Func<Object>, Type, String) GetMetadataForProperty(Func<Object>, Type, String) GetMetadataForProperty(Func<Object>, Type, String)

Returns the metadata for the specified property using the container type and property name.

public override System.Web.Mvc.ModelMetadata GetMetadataForProperty (Func<object> modelAccessor, Type containerType, string propertyName);
override this.GetMetadataForProperty : Func<obj> * Type * string -> System.Web.Mvc.ModelMetadata
Public Overrides Function GetMetadataForProperty (modelAccessor As Func(Of Object), containerType As Type, propertyName As String) As ModelMetadata

Parameters

modelAccessor
Func<Object>

The model accessor.

containerType
Type Type Type

The type of the container.

propertyName
String String String

The name of the property.

Returns

The metadata for the specified property using the container type and property name.

Applies to