Partager via


WrapperProviderFactoriesExtensions.GetWrapperProvider Méthode

Définition

Obtient une instance de IWrapperProvider pour le type fourni.

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

Paramètres

wrapperProviderFactories
IEnumerable<IWrapperProviderFactory>

Liste de IWrapperProviderFactory.

wrapperProviderContext
WrapperProviderContext

L’WrapperProviderContextopérateur

Retours

Une instance de s’il existe un fournisseur de IWrapperProvider wrapping pour le type fourni, sinon null.

S’applique à