ModelMetadataProvider::GetMetadataForProperties Method

Visual Studio 2010

Gets a ModelMetadata object for each property of a model.

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

public:
virtual IEnumerable<ModelMetadata^>^ GetMetadataForProperties(
	Object^ container, 
	Type^ containerType
) abstract

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.

Community Additions

ADD
Show: