Retrieves the ModelMetadataProvider instance for a given HttpActionContext.
Namespace:  System.Web.Http.Controllers
Assembly:  System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function GetMetadataProvider ( _
    actionContext As HttpActionContext _
) As ModelMetadataProvider
'Usage
Dim actionContext As HttpActionContext
Dim returnValue As ModelMetadataProvider
returnValue = actionContext.GetMetadataProvider()
public static ModelMetadataProvider GetMetadataProvider(
    this HttpActionContext actionContext
)
[ExtensionAttribute]
public:
static ModelMetadataProvider^ GetMetadataProvider(
    HttpActionContext^ actionContext
)
static member GetMetadataProvider : 
        actionContext:HttpActionContext -> ModelMetadataProvider 
public static function GetMetadataProvider(
    actionContext : HttpActionContext
) : ModelMetadataProvider
Parameters
- actionContext
 Type: System.Web.Http.Controllers.HttpActionContext
 The context.
Return Value
Type: System.Web.Http.Metadata.ModelMetadataProvider
An ModelMetadataProvider instance.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type HttpActionContext. 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).