AssociatedMetadataProvider.GetMetadataForProperties(Object, Type) Method

Definition

When overridden in a derived class, returns metadata for all properties.

public:
 override System::Collections::Generic::IEnumerable<System::Web::ModelBinding::ModelMetadata ^> ^ GetMetadataForProperties(System::Object ^ container, Type ^ containerType);
public override System.Collections.Generic.IEnumerable<System.Web.ModelBinding.ModelMetadata> GetMetadataForProperties (object container, Type containerType);
override this.GetMetadataForProperties : obj * Type -> seq<System.Web.ModelBinding.ModelMetadata>
Public Overrides Function GetMetadataForProperties (container As Object, containerType As Type) As IEnumerable(Of ModelMetadata)

Parameters

container
Object

The container.

containerType
Type

The type of the container.

Returns

Metadata for all properties.

Exceptions

The containerType parameter is null.

Applies to