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.
Gets a ModelMetadata object for each property of a model.
public abstract System.Collections.Generic.IEnumerable<System.Web.Mvc.ModelMetadata> GetMetadataForProperties (object container, Type containerType);
abstract member GetMetadataForProperties : obj * Type -> seq<System.Web.Mvc.ModelMetadata>
Public MustOverride 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
A ModelMetadata object for each property of a model.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for