XmlSerializerOutputFormatter 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
XmlSerializerOutputFormatter()
使用默认 XmlWriterSettings初始化 的新实例XmlSerializerOutputFormatter。
public:
XmlSerializerOutputFormatter();
public XmlSerializerOutputFormatter ();
Public Sub New ()
适用于
XmlSerializerOutputFormatter(ILoggerFactory)
使用默认 XmlWriterSettings初始化 的新实例XmlSerializerOutputFormatter。
public:
XmlSerializerOutputFormatter(Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public XmlSerializerOutputFormatter (Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.Mvc.Formatters.XmlSerializerOutputFormatter : Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Mvc.Formatters.XmlSerializerOutputFormatter
Public Sub New (loggerFactory As ILoggerFactory)
参数
- loggerFactory
- ILoggerFactory
适用于
XmlSerializerOutputFormatter(XmlWriterSettings)
初始化 XmlSerializerOutputFormatter 的新实例。
public:
XmlSerializerOutputFormatter(System::Xml::XmlWriterSettings ^ writerSettings);
public XmlSerializerOutputFormatter (System.Xml.XmlWriterSettings writerSettings);
new Microsoft.AspNetCore.Mvc.Formatters.XmlSerializerOutputFormatter : System.Xml.XmlWriterSettings -> Microsoft.AspNetCore.Mvc.Formatters.XmlSerializerOutputFormatter
Public Sub New (writerSettings As XmlWriterSettings)
参数
- writerSettings
- XmlWriterSettings
要使用的 XmlSerializer设置。
适用于
XmlSerializerOutputFormatter(XmlWriterSettings, ILoggerFactory)
初始化 XmlSerializerOutputFormatter 类的新实例。
public:
XmlSerializerOutputFormatter(System::Xml::XmlWriterSettings ^ writerSettings, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public XmlSerializerOutputFormatter (System.Xml.XmlWriterSettings writerSettings, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.Mvc.Formatters.XmlSerializerOutputFormatter : System.Xml.XmlWriterSettings * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Mvc.Formatters.XmlSerializerOutputFormatter
Public Sub New (writerSettings As XmlWriterSettings, loggerFactory As ILoggerFactory)
参数
- writerSettings
- XmlWriterSettings
要使用的 XmlSerializer设置。
- loggerFactory
- ILoggerFactory