ModelMetadataProvider.GetMetadataForProperties Method (Object, Type)

.NET Framework (current version)
 

Returns a ModelMetadata object for all properties of a model.

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

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

Parameters

container
Type: System.Object

The container object.

containerType
Type: System.Type

The type of the container object.

Return Value

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

A collection of ModelMetadata objects.

.NET Framework
Available since 4.5
Return to top
Show: