WrapperProviderFactoriesExtensions.GetWrapperProvider(IEnumerable<IWrapperProviderFactory>, WrapperProviderContext) WrapperProviderFactoriesExtensions.GetWrapperProvider(IEnumerable<IWrapperProviderFactory>, WrapperProviderContext) Method

Definition

Gets an instance of IWrapperProvider for the supplied type.

public static Microsoft.AspNetCore.Mvc.Formatters.Xml.IWrapperProvider GetWrapperProvider (this System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.Formatters.Xml.IWrapperProviderFactory> wrapperProviderFactories, Microsoft.AspNetCore.Mvc.Formatters.Xml.WrapperProviderContext wrapperProviderContext);
static member GetWrapperProvider : seq<Microsoft.AspNetCore.Mvc.Formatters.Xml.IWrapperProviderFactory> * Microsoft.AspNetCore.Mvc.Formatters.Xml.WrapperProviderContext -> Microsoft.AspNetCore.Mvc.Formatters.Xml.IWrapperProvider

Parameters

wrapperProviderFactories
IEnumerable<IWrapperProviderFactory>

A list of IWrapperProviderFactory.

Returns

An instance of IWrapperProvider if there is a wrapping provider for the supplied type, else null.

Applies to