Partager via


AssociatedMetadataProvider<TModelMetadata>.GetMetadataForProperties Method

Retrieves a list of properties for the model.

Namespace:  System.Web.Http.Metadata.Providers
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Public Overrides NotOverridable Function GetMetadataForProperties ( _
    container As Object, _
    containerType As Type _
) As IEnumerable(Of ModelMetadata)
'Usage
Dim instance As AssociatedMetadataProvider 
Dim container As Object 
Dim containerType As Type 
Dim returnValue As IEnumerable(Of ModelMetadata)

returnValue = instance.GetMetadataForProperties(container, _
    containerType)
public override sealed IEnumerable<ModelMetadata> GetMetadataForProperties(
    Object container,
    Type containerType
)
public:
virtual IEnumerable<ModelMetadata^>^ GetMetadataForProperties(
    Object^ container, 
    Type^ containerType
) override sealed
abstract GetMetadataForProperties : 
        container:Object * 
        containerType:Type -> IEnumerable<ModelMetadata> 
override GetMetadataForProperties : 
        container:Object * 
        containerType:Type -> IEnumerable<ModelMetadata> 
public override final function GetMetadataForProperties(
    container : Object, 
    containerType : Type
) : IEnumerable<ModelMetadata>

Parameters

  • containerType
    Type: System.Type

    The type of the container.

Return Value

Type: System.Collections.Generic.IEnumerable<ModelMetadata>
A list of properties for the model.

See Also

Reference

AssociatedMetadataProvider<TModelMetadata> Class

System.Web.Http.Metadata.Providers Namespace