ModelMetadataProvider.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.
Returns metadata for the specified property.
public:
abstract System::Web::ModelBinding::ModelMetadata ^ GetMetadataForProperty(Func<System::Object ^> ^ modelAccessor, Type ^ containerType, System::String ^ propertyName);
public abstract System.Web.ModelBinding.ModelMetadata GetMetadataForProperty (Func<object> modelAccessor, Type containerType, string propertyName);
abstract member GetMetadataForProperty : Func<obj> * Type * string -> System.Web.ModelBinding.ModelMetadata
Public MustOverride Function GetMetadataForProperty (modelAccessor As Func(Of Object), containerType As Type, propertyName As String) As ModelMetadata
Parameters
- containerType
- Type
The type of the container.
- propertyName
- String
The name of the property.
Returns
Metadata for the specified property.
Applies to
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.