WrapperProviderFactoriesExtensions.GetWrapperProvider 方法

定义

获取所提供的类型的 实例 IWrapperProvider

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

参数

wrapperProviderFactories
IEnumerable<IWrapperProviderFactory>

IWrapperProviderFactory 的列表。

返回

如果提供的类型有包装提供程序,则为 的实例 IWrapperProvider ,否则为 null。

适用于