XmlSyndicationContent 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 XmlSyndicationContent 的新实例。
重载
XmlSyndicationContent(XmlSyndicationContent)
使用指定的 XmlSyndicationContent 实例初始化 XmlSyndicationContent 的新实例。
protected:
XmlSyndicationContent(System::ServiceModel::Syndication::XmlSyndicationContent ^ source);
protected XmlSyndicationContent (System.ServiceModel.Syndication.XmlSyndicationContent source);
new System.ServiceModel.Syndication.XmlSyndicationContent : System.ServiceModel.Syndication.XmlSyndicationContent -> System.ServiceModel.Syndication.XmlSyndicationContent
Protected Sub New (source As XmlSyndicationContent)
参数
- source
- XmlSyndicationContent
适用于
XmlSyndicationContent(XmlReader)
初始化 XmlSyndicationContent 类的新实例。
public:
XmlSyndicationContent(System::Xml::XmlReader ^ reader);
public XmlSyndicationContent (System.Xml.XmlReader reader);
new System.ServiceModel.Syndication.XmlSyndicationContent : System.Xml.XmlReader -> System.ServiceModel.Syndication.XmlSyndicationContent
Public Sub New (reader As XmlReader)
参数
适用于
XmlSyndicationContent(String, SyndicationElementExtension)
使用指定的类型和 XmlSyndicationContent 初始化 SyndicationElementExtension 的新实例。
public:
XmlSyndicationContent(System::String ^ type, System::ServiceModel::Syndication::SyndicationElementExtension ^ extension);
public XmlSyndicationContent (string type, System.ServiceModel.Syndication.SyndicationElementExtension extension);
new System.ServiceModel.Syndication.XmlSyndicationContent : string * System.ServiceModel.Syndication.SyndicationElementExtension -> System.ServiceModel.Syndication.XmlSyndicationContent
Public Sub New (type As String, extension As SyndicationElementExtension)
参数
- type
- String
内容类型通常以 MIME 内容类型表示,例如 application/xml 或 application/xml+customer。
- extension
- SyndicationElementExtension
适用于
XmlSyndicationContent(String, Object, XmlObjectSerializer)
使用指定的类型、对象和 XmlSyndicationContent 初始化 XmlObjectSerializer 的新实例。
public:
XmlSyndicationContent(System::String ^ type, System::Object ^ dataContractExtension, System::Runtime::Serialization::XmlObjectSerializer ^ dataContractSerializer);
public XmlSyndicationContent (string type, object dataContractExtension, System.Runtime.Serialization.XmlObjectSerializer dataContractSerializer);
new System.ServiceModel.Syndication.XmlSyndicationContent : string * obj * System.Runtime.Serialization.XmlObjectSerializer -> System.ServiceModel.Syndication.XmlSyndicationContent
Public Sub New (type As String, dataContractExtension As Object, dataContractSerializer As XmlObjectSerializer)
参数
- type
- String
内容的类型。
- dataContractExtension
- Object
数据协定扩展。
- dataContractSerializer
- XmlObjectSerializer
要使用的 XmlObjectSerializer。
注解
DataContractSerializer 是 XmlObjectSerializer 的一个子类型。 如果传递的是 Null,则表示已实例化 DataContractSerializer 的默认实例。
适用于
XmlSyndicationContent(String, Object, XmlSerializer)
使用指定的类型、对象和 XmlSyndicationContent 初始化 XmlSerializer 的新实例。
public:
XmlSyndicationContent(System::String ^ type, System::Object ^ xmlSerializerExtension, System::Xml::Serialization::XmlSerializer ^ serializer);
public XmlSyndicationContent (string type, object xmlSerializerExtension, System.Xml.Serialization.XmlSerializer serializer);
new System.ServiceModel.Syndication.XmlSyndicationContent : string * obj * System.Xml.Serialization.XmlSerializer -> System.ServiceModel.Syndication.XmlSyndicationContent
Public Sub New (type As String, xmlSerializerExtension As Object, serializer As XmlSerializer)
参数
- type
- String
内容的类型。
- xmlSerializerExtension
- Object
XML 序列化程序扩展。
- serializer
- XmlSerializer
要使用的 XmlSerializer。