Share via


WrapperProviderFactoriesExtensions.GetWrapperProvider Method

Definition

Gets an instance of IWrapperProvider for the supplied type.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Mvc::Formatters::Xml::IWrapperProvider ^ GetWrapperProvider(System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Mvc::Formatters::Xml::IWrapperProviderFactory ^> ^ wrapperProviderFactories, Microsoft::AspNetCore::Mvc::Formatters::Xml::WrapperProviderContext ^ wrapperProviderContext);
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);
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
<Extension()>
Public Function GetWrapperProvider (wrapperProviderFactories As IEnumerable(Of IWrapperProviderFactory), wrapperProviderContext As WrapperProviderContext) As IWrapperProvider

Parameters

wrapperProviderFactories
IEnumerable<IWrapperProviderFactory>

A list of IWrapperProviderFactory.

wrapperProviderContext
WrapperProviderContext

The WrapperProviderContext.

Returns

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

Applies to