ModelMetadataProvider.GetMetadataForProperties Method (Object, Type)
Gets a ModelMetadata object for each property of a model.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
abstract GetMetadataForProperties :
container:Object *
containerType:Type -> IEnumerable<ModelMetadata>
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.
Show: