WrapperProviderFactoriesExtensions.GetWrapperProvider Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Returns
An instance of IWrapperProvider if there is a wrapping provider for the supplied type, else null.