Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ModelMetadataProvider.GetMetadataForProperty Method

.NET Framework 4.6 and 4.5

Returns metadata for the specified property.

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

public abstract ModelMetadata GetMetadataForProperty(
	Func<Object> modelAccessor,
	Type containerType,
	string propertyName
)

Parameters

modelAccessor
Type: System.Func<Object>

The model accessor.

containerType
Type: System.Type

The type of the container.

propertyName
Type: System.String

The name of the property.

Return Value

Type: System.Web.ModelBinding.ModelMetadata
Metadata for the specified property.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft