SyndicationContent.CreateXmlContent 方法

定义

创建一个新的 XmlSyndicationContent 实例。

重载

CreateXmlContent(Object)

使用指定的数据协定对象创建新的 XmlSyndicationContent 实例。

CreateXmlContent(XmlReader)

创建 XML 联合内容。

CreateXmlContent(Object, XmlObjectSerializer)

使用指定的数据协定对象和数据协定序列化程序创建新的 XmlSyndicationContent 实例。

CreateXmlContent(Object, XmlSerializer)

使用指定的对象和 XML 序列化程序创建新的 XmlSyndicationContent 实例。

CreateXmlContent(Object)

Source:
SyndicationContent.cs
Source:
SyndicationContent.cs
Source:
SyndicationContent.cs
Source:
SyndicationContent.cs

使用指定的数据协定对象创建新的 XmlSyndicationContent 实例。

public:
 static System::ServiceModel::Syndication::XmlSyndicationContent ^ CreateXmlContent(System::Object ^ dataContractObject);
public static System.ServiceModel.Syndication.XmlSyndicationContent CreateXmlContent (object dataContractObject);
static member CreateXmlContent : obj -> System.ServiceModel.Syndication.XmlSyndicationContent
Public Shared Function CreateXmlContent (dataContractObject As Object) As XmlSyndicationContent

参数

dataContractObject
Object

数据协定对象。

返回

XmlSyndicationContent 实例。

适用于

CreateXmlContent(XmlReader)

Source:
SyndicationContent.cs
Source:
SyndicationContent.cs
Source:
SyndicationContent.cs
Source:
SyndicationContent.cs

创建 XML 联合内容。

public:
 static System::ServiceModel::Syndication::XmlSyndicationContent ^ CreateXmlContent(System::Xml::XmlReader ^ xmlReader);
public static System.ServiceModel.Syndication.XmlSyndicationContent CreateXmlContent (System.Xml.XmlReader xmlReader);
static member CreateXmlContent : System.Xml.XmlReader -> System.ServiceModel.Syndication.XmlSyndicationContent
Public Shared Function CreateXmlContent (xmlReader As XmlReader) As XmlSyndicationContent

参数

xmlReader
XmlReader

要从其中进行读取的 XmlReader

返回

包含新内容的 XmlSyndicationContent 类的实例。

适用于

CreateXmlContent(Object, XmlObjectSerializer)

Source:
SyndicationContent.cs
Source:
SyndicationContent.cs
Source:
SyndicationContent.cs
Source:
SyndicationContent.cs

使用指定的数据协定对象和数据协定序列化程序创建新的 XmlSyndicationContent 实例。

public:
 static System::ServiceModel::Syndication::XmlSyndicationContent ^ CreateXmlContent(System::Object ^ dataContractObject, System::Runtime::Serialization::XmlObjectSerializer ^ dataContractSerializer);
public static System.ServiceModel.Syndication.XmlSyndicationContent CreateXmlContent (object dataContractObject, System.Runtime.Serialization.XmlObjectSerializer dataContractSerializer);
static member CreateXmlContent : obj * System.Runtime.Serialization.XmlObjectSerializer -> System.ServiceModel.Syndication.XmlSyndicationContent
Public Shared Function CreateXmlContent (dataContractObject As Object, dataContractSerializer As XmlObjectSerializer) As XmlSyndicationContent

参数

dataContractObject
Object

数据协定对象。

dataContractSerializer
XmlObjectSerializer

数据协定序列化程序。

返回

XmlSyndicationContent 实例。

适用于

CreateXmlContent(Object, XmlSerializer)

Source:
SyndicationContent.cs
Source:
SyndicationContent.cs
Source:
SyndicationContent.cs
Source:
SyndicationContent.cs

使用指定的对象和 XML 序列化程序创建新的 XmlSyndicationContent 实例。

public:
 static System::ServiceModel::Syndication::XmlSyndicationContent ^ CreateXmlContent(System::Object ^ xmlSerializerObject, System::Xml::Serialization::XmlSerializer ^ serializer);
public static System.ServiceModel.Syndication.XmlSyndicationContent CreateXmlContent (object xmlSerializerObject, System.Xml.Serialization.XmlSerializer serializer);
static member CreateXmlContent : obj * System.Xml.Serialization.XmlSerializer -> System.ServiceModel.Syndication.XmlSyndicationContent
Public Shared Function CreateXmlContent (xmlSerializerObject As Object, serializer As XmlSerializer) As XmlSyndicationContent

参数

xmlSerializerObject
Object

对象。

serializer
XmlSerializer

XML 序列化程序。

返回

XmlSyndicationContent 实例。

适用于