SerializableErrorWrapperProviderFactory.GetProvider 方法

定义

如果提供的 为 ,则SerializableError创建 的实例SerializableErrorWrapperProviderDeclaredTypecontext

public:
 virtual Microsoft::AspNetCore::Mvc::Formatters::Xml::IWrapperProvider ^ GetProvider(Microsoft::AspNetCore::Mvc::Formatters::Xml::WrapperProviderContext ^ context);
public Microsoft.AspNetCore.Mvc.Formatters.Xml.IWrapperProvider GetProvider (Microsoft.AspNetCore.Mvc.Formatters.Xml.WrapperProviderContext context);
public Microsoft.AspNetCore.Mvc.Formatters.Xml.IWrapperProvider? GetProvider (Microsoft.AspNetCore.Mvc.Formatters.Xml.WrapperProviderContext context);
abstract member GetProvider : Microsoft.AspNetCore.Mvc.Formatters.Xml.WrapperProviderContext -> Microsoft.AspNetCore.Mvc.Formatters.Xml.IWrapperProvider
override this.GetProvider : Microsoft.AspNetCore.Mvc.Formatters.Xml.WrapperProviderContext -> Microsoft.AspNetCore.Mvc.Formatters.Xml.IWrapperProvider
Public Function GetProvider (context As WrapperProviderContext) As IWrapperProvider

参数

返回

如果提供的 context为 ,则为 SerializableError的实例SerializableErrorWrapperProvider;否则为 nullDeclaredType

实现

适用于