Partager via


SyndicationContent.CreateXmlContent Method (Object, XmlObjectSerializer)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

Namespace:  System.ServiceModel.Syndication
Assembly:  System.ServiceModel.Syndication (in System.ServiceModel.Syndication.dll)

Syntax

'Declaration
Public Shared Function CreateXmlContent ( _
    dataContractObject As Object, _
    dataContractSerializer As XmlObjectSerializer _
) As XmlSyndicationContent
public static XmlSyndicationContent CreateXmlContent(
    Object dataContractObject,
    XmlObjectSerializer dataContractSerializer
)

Parameters

  • dataContractObject
    Type: System.Object
    The data contract object.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.