Export (0) Print
Expand All

ModelMetadataProvider.GetMetadataForProperty Method

Get metadata for the specified property.

Namespace:  System.Web.Http.Metadata
Assembly:  System.Web.Http (in System.Web.Http.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 property to get the metadata model for.

Return Value

Type: System.Web.Http.Metadata.ModelMetadata
The metadata model for the specified property.
Show:
© 2015 Microsoft