Język

AssociatedMetadataProvider.GetMetadataForProperties(Object, Type) Metoda

Definicja

Po zastąpieniu w klasie pochodnej zwraca metadane dla wszystkich właściwości.

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)

Parametry

container
Object

Kontener.

containerType
Type

Typ kontenera.

Zwraca

Metadane dla wszystkich właściwości.

Wyjątki

Parametr containerType jest null.

Dotyczy