SerializableErrorWrapperProviderFactory.GetProvider(WrapperProviderContext) 方法

定義

SerializableErrorWrapperProvider如果提供 contextDeclaredType 為,則建立的實例 SerializableError

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);
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

參數

傳回

IWrapperProvider

如果提供的是,則為的實例, SerializableErrorWrapperProvider context 否則為 DeclaredType SerializableError null

實作

適用於