ModelMetadataProvider.GetMetadataForProperties Method
Gets a ModelMetadata object for each property of a model.
Namespace: System.Web.Http.Metadata
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public MustOverride Function GetMetadataForProperties ( _
container As Object, _
containerType As Type _
) As IEnumerable(Of ModelMetadata)
'Usage
Dim instance As ModelMetadataProvider
Dim container As Object
Dim containerType As Type
Dim returnValue As IEnumerable(Of ModelMetadata)
returnValue = instance.GetMetadataForProperties(container, _
containerType)
public abstract IEnumerable<ModelMetadata> GetMetadataForProperties(
Object container,
Type containerType
)
public:
virtual IEnumerable<ModelMetadata^>^ GetMetadataForProperties(
Object^ container,
Type^ containerType
) abstract
abstract GetMetadataForProperties :
container:Object *
containerType:Type -> IEnumerable<ModelMetadata>
public abstract function GetMetadataForProperties(
container : Object,
containerType : Type
) : IEnumerable<ModelMetadata>
Parameters
- container
Type: System.Object
The container.
- containerType
Type: System.Type
The type of the container.
Return Value
Type: System.Collections.Generic.IEnumerable<ModelMetadata>
A ModelMetadata object for each property of a model.