Udostępnij za pośrednictwem


AssociatedMetadataProvider.GetMetadataForProperties(Object, Type) Metoda

Definicja

Gdy jest zastępowany 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

IEnumerable<ModelMetadata>

Metadane dla wszystkich właściwości.

Wyjątki

containerTypeParametr ma wartość null .

Dotyczy