CachedAssociatedMetadataProvider<TModelMetadata>.GetMetadataForProperty Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetMetadataForProperty(Func<Object>, Type, PropertyDescriptor) |
Returns the metadata for the specified property. |
GetMetadataForProperty(Func<Object>, Type, String) |
Returns the metadata for the specified property. |
GetMetadataForProperty(Func<Object>, Type, PropertyDescriptor)
Returns the metadata for the specified property.
protected override sealed 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
Protected Overrides NotOverridable Function GetMetadataForProperty (modelAccessor As Func(Of Object), containerType As Type, propertyDescriptor As PropertyDescriptor) As ModelMetadata
Parameters
- containerType
- Type
The container type.
- propertyDescriptor
- PropertyDescriptor
The property descriptor.
Returns
The metadata for the specified property.
Applies to
GetMetadataForProperty(Func<Object>, Type, String)
Returns the metadata for the specified property.
public override sealed 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 NotOverridable Function GetMetadataForProperty (modelAccessor As Func(Of Object), containerType As Type, propertyName As String) As ModelMetadata
Parameters
- containerType
- Type
The container type.
- propertyName
- String
The property name.
Returns
The metadata for the specified property.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for