SyndicationText SyndicationText SyndicationText SyndicationText Class

Implements the ISyndicationText interface that encapsulates elements in RSS 2.0 or Atom 1.0 that can have either text, HTML, or XHTML. In Atom 1.0, this object maps to an atomTextConstruct in the schema, which can be atom:title, atom:subtitle, atom:rights, or atom:summary elements.

Syntax

Declaration

public sealed class SyndicationTextpublic sealed class SyndicationTextPublic NotInheritable Class SyndicationTextpublic sealed class SyndicationText

Remarks

The following table maps SyndicationText properties to RSS and Atom feed elements.

SyndicationTextRSSAtom
Text (node value)(node value)
Type type (attribute)
Xml (xhtml node value)

Constructors summary

Creates a new SyndicationText object.

Creates a new SyndicationText object with the specified Text property value.

Creates a new SyndicationText object with the specified Text and Type property values.

Properties summary

Gets the list of custom attributes of the element.

Gets or sets the base URI for the element. This property represents the xml:base attribute on the element. It may be inherited from an ancestor element.

Gets the list of child elements within the element.

Gets or sets the language of the element. This property represents the xml:lang attribute on the element. It may be inherited from an ancestor element. It must be valid according to XML 1.0.

Gets or sets the local name of the element.

Gets or sets the namespace of the element.

Gets or sets the text content of the element. If the element contains only child elements, this property is NULL.

Gets the content of a text content construct like atom:title.

Gets or sets the type of the content.

Gets or sets the XML content.

Methods summary

Generates the DOM object that represents this element, all the attributes and child elements including foreign markups. The only formats accepted by this method are Atom 1.0 and RSS 2.0.

Constructors

  • SyndicationText()
    SyndicationText()
    SyndicationText()
    SyndicationText()

    Creates a new SyndicationText object.

    public SyndicationText()public New()Public Sub New()public SyndicationText()
  • SyndicationText(String)
    SyndicationText(String)
    SyndicationText(String)
    SyndicationText(String)

    Creates a new SyndicationText object with the specified Text property value.

    public SyndicationText(String text)public New(String text)Public Sub New(text As String)public SyndicationText(String text)

    Parameters

    • text
      System.String
      System.String
      System.String
      System.String

      The content of a text content construct like atom:title.

  • SyndicationText(String, SyndicationTextType)
    SyndicationText(String, SyndicationTextType)
    SyndicationText(String, SyndicationTextType)
    SyndicationText(String, SyndicationTextType)

    Creates a new SyndicationText object with the specified Text and Type property values.

    public SyndicationText(String text, SyndicationTextType type)public New(String text, SyndicationTextType type)Public Sub New(text As String, type As SyndicationTextType)public SyndicationText(String text, SyndicationTextType type)

    Parameters

Properties

  • AttributeExtensions
    AttributeExtensions
    AttributeExtensions
    AttributeExtensions

    Gets the list of custom attributes of the element.

    public IVector<SyndicationAttribute> AttributeExtensions { get; }public IVector<SyndicationAttribute> AttributeExtensions { get; }Public ReadOnly Property AttributeExtensions As IVector<SyndicationAttribute>public IVector<SyndicationAttribute> AttributeExtensions { get; }

    Property Value

    • A list of attributes of the element.

  • BaseUri
    BaseUri
    BaseUri
    BaseUri

    Gets or sets the base URI for the element. This property represents the xml:base attribute on the element. It may be inherited from an ancestor element.

    public Uri BaseUri { get; set; }public Uri BaseUri { get; set; }Public ReadWrite Property BaseUri As Uripublic Uri BaseUri { get; set; }

    Property Value

  • ElementExtensions
    ElementExtensions
    ElementExtensions
    ElementExtensions

    Gets the list of child elements within the element.

    public IVector<ISyndicationNode> ElementExtensions { get; }public IVector<ISyndicationNode> ElementExtensions { get; }Public ReadOnly Property ElementExtensions As IVector<ISyndicationNode>public IVector<ISyndicationNode> ElementExtensions { get; }

    Property Value

    • The list of child elements within the element.

    Remarks

    The following elements in the RSS 2.0 documents do not have public accessors;they can be accessed by searching the ElementExtensions collection on the SyndicationFeed object:

    • /rss/channel/docs
    • /rss/channel/cloud
    • /rss/channel/pubDate
    • /rss/channel/webmaster
    • /rss/channel/ttl
    • /rss/channel/rating
    • /rss/channel/textInput
    • /rss/channel/skipDays
    • /rss/channel/skipHours
  • Language
    Language
    Language
    Language

    Gets or sets the language of the element. This property represents the xml:lang attribute on the element. It may be inherited from an ancestor element. It must be valid according to XML 1.0.

    public string Language { get; set; }public string Language { get; set; }Public ReadWrite Property Language As stringpublic string Language { get; set; }

    Property Value

    • string
      string
      string
      string

      The xml:lang attribute on the element.

  • NodeName
    NodeName
    NodeName
    NodeName

    Gets or sets the local name of the element.

    public string NodeName { get; set; }public string NodeName { get; set; }Public ReadWrite Property NodeName As stringpublic string NodeName { get; set; }

    Property Value

    • string
      string
      string
      string

      The local name of the element. Must be valid according to XML 1.0.

  • NodeNamespace
    NodeNamespace
    NodeNamespace
    NodeNamespace

    Gets or sets the namespace of the element.

    public string NodeNamespace { get; set; }public string NodeNamespace { get; set; }Public ReadWrite Property NodeNamespace As stringpublic string NodeNamespace { get; set; }

    Property Value

    • string
      string
      string
      string

      The namespace of the element.

  • NodeValue
    NodeValue
    NodeValue
    NodeValue

    Gets or sets the text content of the element. If the element contains only child elements, this property is NULL.

    public string NodeValue { get; set; }public string NodeValue { get; set; }Public ReadWrite Property NodeValue As stringpublic string NodeValue { get; set; }

    Property Value

    • string
      string
      string
      string

      The text content of the element.

  • Text
    Text
    Text
    Text

    Gets the content of a text content construct like atom:title.

    public string Text { get; set; }public string Text { get; set; }Public ReadWrite Property Text As stringpublic string Text { get; set; }

    Property Value

    • string
      string
      string
      string

      The text content.

  • Type
    Type
    Type
    Type

    Gets or sets the type of the content.

    public string Type { get; set; }public string Type { get; set; }Public ReadWrite Property Type As stringpublic string Type { get; set; }

    Property Value

    • string
      string
      string
      string

      This value can be "text", "html", "xhtml" or other media types.

  • Xml
    Xml
    Xml
    Xml

    Gets or sets the XML content.

    public XmlDocument Xml { get; set; }public XmlDocument Xml { get; set; }Public ReadWrite Property Xml As XmlDocumentpublic XmlDocument Xml { get; set; }

    Property Value

Methods

  • GetXmlDocument(SyndicationFormat)
    GetXmlDocument(SyndicationFormat)
    GetXmlDocument(SyndicationFormat)
    GetXmlDocument(SyndicationFormat)

    Generates the DOM object that represents this element, all the attributes and child elements including foreign markups. The only formats accepted by this method are Atom 1.0 and RSS 2.0.

    public XmlDocument GetXmlDocument(SyndicationFormat format)public XmlDocument GetXmlDocument(SyndicationFormat format)Public Function GetXmlDocument(format As SyndicationFormat) As XmlDocumentpublic XmlDocument GetXmlDocument(SyndicationFormat format)

    Parameters

    Returns

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ActivatableAttribute
Windows.Foundation.Metadata.ActivatableAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.DualApiPartitionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ThreadingAttribute

Details

Assembly

Windows.Web.Syndication.dll