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