ModelMetadataProvider.GetMetadataForProperties(Object, Type) Method

Definition

Returns a ModelMetadata object for all properties of a model.

C#
public abstract System.Collections.Generic.IEnumerable<System.Web.ModelBinding.ModelMetadata> GetMetadataForProperties (object container, Type containerType);

Parameters

container
Object

The container object.

containerType
Type

The type of the container object.

Returns

A collection of ModelMetadata objects.

Applies to

Продукт Версии
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1