GetMetadataForProperty Method
Collapse the table of content
Expand the table of content

ModelMetadataProvider.GetMetadataForProperty Method (Func<Object>, Type, String)

.NET Framework (current version)
 

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
Available since 4.5
Return to top
Show:
© 2016 Microsoft