Partager via


ServicesExtensions.GetValueProviderFactories Method

Gets the ValueProviderFactory collection.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetValueProviderFactories ( _
    services As ServicesContainer _
) As IEnumerable(Of ValueProviderFactory)
'Usage
Dim services As ServicesContainer 
Dim returnValue As IEnumerable(Of ValueProviderFactory)

returnValue = services.GetValueProviderFactories()
public static IEnumerable<ValueProviderFactory> GetValueProviderFactories(
    this ServicesContainer services
)
[ExtensionAttribute]
public:
static IEnumerable<ValueProviderFactory^>^ GetValueProviderFactories(
    ServicesContainer^ services
)
static member GetValueProviderFactories : 
        services:ServicesContainer -> IEnumerable<ValueProviderFactory> 
public static function GetValueProviderFactories(
    services : ServicesContainer
) : IEnumerable<ValueProviderFactory>

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<ValueProviderFactory>
Returns a colleciton ofValueProviderFactoryobjects.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ServicesContainer. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.108) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.108).

Remarks

The order of providers in the collection is the order that ASP.NET Web API uses to search for value provider factories.

See Also

Reference

ServicesExtensions Class

System.Web.Http Namespace