XmlDataContractSerializerOutputFormatter 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
XmlDataContractSerializerOutputFormatter()
使用預設 XmlWriterSettings 初始化 的新實例 XmlDataContractSerializerOutputFormatter 。
public:
XmlDataContractSerializerOutputFormatter();
public XmlDataContractSerializerOutputFormatter ();
Public Sub New ()
適用於
XmlDataContractSerializerOutputFormatter(ILoggerFactory)
使用預設 XmlWriterSettings 初始化 的新實例 XmlDataContractSerializerOutputFormatter 。
public:
XmlDataContractSerializerOutputFormatter(Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public XmlDataContractSerializerOutputFormatter (Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.Mvc.Formatters.XmlDataContractSerializerOutputFormatter : Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Mvc.Formatters.XmlDataContractSerializerOutputFormatter
Public Sub New (loggerFactory As ILoggerFactory)
參數
- loggerFactory
- ILoggerFactory
適用於
XmlDataContractSerializerOutputFormatter(XmlWriterSettings)
初始化 XmlDataContractSerializerOutputFormatter 的新執行個體。
public:
XmlDataContractSerializerOutputFormatter(System::Xml::XmlWriterSettings ^ writerSettings);
public XmlDataContractSerializerOutputFormatter (System.Xml.XmlWriterSettings writerSettings);
new Microsoft.AspNetCore.Mvc.Formatters.XmlDataContractSerializerOutputFormatter : System.Xml.XmlWriterSettings -> Microsoft.AspNetCore.Mvc.Formatters.XmlDataContractSerializerOutputFormatter
Public Sub New (writerSettings As XmlWriterSettings)
參數
- writerSettings
- XmlWriterSettings
要使用的 DataContractSerializer 設定。
適用於
XmlDataContractSerializerOutputFormatter(XmlWriterSettings, ILoggerFactory)
初始化 XmlDataContractSerializerOutputFormatter 的新執行個體。
public:
XmlDataContractSerializerOutputFormatter(System::Xml::XmlWriterSettings ^ writerSettings, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public XmlDataContractSerializerOutputFormatter (System.Xml.XmlWriterSettings writerSettings, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.Mvc.Formatters.XmlDataContractSerializerOutputFormatter : System.Xml.XmlWriterSettings * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Mvc.Formatters.XmlDataContractSerializerOutputFormatter
Public Sub New (writerSettings As XmlWriterSettings, loggerFactory As ILoggerFactory)
參數
- writerSettings
- XmlWriterSettings
要使用的 DataContractSerializer 設定。
- loggerFactory
- ILoggerFactory