XmlDataContractSerializerOutputFormatter 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
XmlDataContractSerializerOutputFormatter()
public:
XmlDataContractSerializerOutputFormatter();
public XmlDataContractSerializerOutputFormatter ();
Public Sub New ()
适用于
XmlDataContractSerializerOutputFormatter(ILoggerFactory)
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