共用方式為


SyndicationContent.CreateXmlContent 方法

定義

建立新的 XmlSyndicationContent 執行個體。

多載

CreateXmlContent(Object)

以指定的資料合約物件,建立新的 XmlSyndicationContent 執行個體。

CreateXmlContent(XmlReader)

建立 XML 新聞訂閱內容。

CreateXmlContent(Object, XmlObjectSerializer)

以指定的資料合約物件及資料合約序列化程式,建立新的 XmlSyndicationContent 執行個體。

CreateXmlContent(Object, XmlSerializer)

以指定物件與 XML 序列化程式,建立新的 XmlSyndicationContent 執行個體。

CreateXmlContent(Object)

來源:
SyndicationContent.cs
來源:
SyndicationContent.cs
來源:
SyndicationContent.cs
來源:
SyndicationContent.cs
來源:
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)

來源:
SyndicationContent.cs
來源:
SyndicationContent.cs
來源:
SyndicationContent.cs
來源:
SyndicationContent.cs
來源:
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)

來源:
SyndicationContent.cs
來源:
SyndicationContent.cs
來源:
SyndicationContent.cs
來源:
SyndicationContent.cs
來源:
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)

來源:
SyndicationContent.cs
來源:
SyndicationContent.cs
來源:
SyndicationContent.cs
來源:
SyndicationContent.cs
來源:
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 執行個體。

適用於