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.GetMetadataForProperties Method (Object, Type)

 

Gets a ModelMetadata object for each property of a model.

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

public abstract IEnumerable<ModelMetadata> GetMetadataForProperties(
	object container,
	Type containerType
)

Parameters

container
Type: System.Object

The container.

containerType
Type: System.Type

The type of the container.

Return Value

Type: System.Collections.Generic.IEnumerable<ModelMetadata>

A ModelMetadata object for each property of a model.

Return to top
Show:
© 2015 Microsoft