SyndicationContent.CreateXmlContent Method

Definition

Creates a new XmlSyndicationContent instance.

Overloads

CreateXmlContent(Object)

Creates a new XmlSyndicationContent instance with the specified data contract object.

CreateXmlContent(XmlReader)

Creates XML syndication content.

CreateXmlContent(Object, XmlObjectSerializer)

Creates a new XmlSyndicationContent instance with the specified data contract object and data contract serializer.

CreateXmlContent(Object, XmlSerializer)

Creates a new XmlSyndicationContent instance with the specified object and XML serializer.

CreateXmlContent(Object)

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

Creates a new XmlSyndicationContent instance with the specified data contract object.

public static System.ServiceModel.Syndication.XmlSyndicationContent CreateXmlContent (object dataContractObject);

Parameters

dataContractObject
Object

The data contract object.

Returns

A new XmlSyndicationContent instance.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

CreateXmlContent(XmlReader)

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

Creates XML syndication content.

public static System.ServiceModel.Syndication.XmlSyndicationContent CreateXmlContent (System.Xml.XmlReader xmlReader);

Parameters

xmlReader
XmlReader

The XmlReader to read from.

Returns

An instance of the XmlSyndicationContent class that contains the new content.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

CreateXmlContent(Object, XmlObjectSerializer)

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

Creates a new XmlSyndicationContent instance with the specified data contract object and data contract serializer.

public static System.ServiceModel.Syndication.XmlSyndicationContent CreateXmlContent (object dataContractObject, System.Runtime.Serialization.XmlObjectSerializer dataContractSerializer);

Parameters

dataContractObject
Object

The data contract object.

dataContractSerializer
XmlObjectSerializer

The data contract serializer.

Returns

A new XmlSyndicationContent instance.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

CreateXmlContent(Object, XmlSerializer)

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

Creates a new XmlSyndicationContent instance with the specified object and XML serializer.

public static System.ServiceModel.Syndication.XmlSyndicationContent CreateXmlContent (object xmlSerializerObject, System.Xml.Serialization.XmlSerializer serializer);

Parameters

xmlSerializerObject
Object

The object.

serializer
XmlSerializer

The XML serializer.

Returns

A new XmlSyndicationContent instance.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)