ModelMetadataProvider.GetMetadataForProperties(Object, Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a ModelMetadata object for all properties of a model.
public:
abstract System::Collections::Generic::IEnumerable<System::Web::ModelBinding::ModelMetadata ^> ^ GetMetadataForProperties(System::Object ^ container, Type ^ containerType);
public abstract System.Collections.Generic.IEnumerable<System.Web.ModelBinding.ModelMetadata> GetMetadataForProperties (object container, Type containerType);
abstract member GetMetadataForProperties : obj * Type -> seq<System.Web.ModelBinding.ModelMetadata>
Public MustOverride Function GetMetadataForProperties (container As Object, containerType As Type) As IEnumerable(Of ModelMetadata)
Parameters
- container
- Object
The container object.
- containerType
- Type
The type of the container object.
Returns
A collection of ModelMetadata objects.
Applies to
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.