SyndicationCategory SyndicationCategory SyndicationCategory SyndicationCategory Class

Represents the category of a feed or an item. This class encapsulates information in the /rss/channel/item/category element in RSS 2.0 or the atom:category element in Atom 1.0.

Syntax

Declaration

public sealed class SyndicationCategorypublic sealed class SyndicationCategoryPublic NotInheritable Class SyndicationCategory

Remarks

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

SyndicationCategoryRSSAtom
Label label (attribute)
Scheme domain (attribute)scheme (attribute)
Term (node value)uri (attribute)

Constructors summary

Creates a SyndicationCategory object.

Creates a SyndicationCategory object with the specified term property.

Creates SyndicationCategory object with the specified 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 label for the category. This property represents the label attribute on atom:category. It provides a label for display in end-user applications.

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 or sets the scheme of the category. This property represents the scheme attribute on atom:category or the domain attribute on the category element in RSS 2.0.

Gets or sets a string that identifies the category. This property represents the required term attribute on atom:category or the text content of the category element in RSS 2.0.

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

  • SyndicationCategory()
    SyndicationCategory()
    SyndicationCategory()
    SyndicationCategory()

    Creates a SyndicationCategory object.

    public SyndicationCategory()public SyndicationCategory()Public Function SyndicationCategory() As
  • SyndicationCategory(System.String)
    SyndicationCategory(System.String)
    SyndicationCategory(System.String)
    SyndicationCategory(System.String)

    Creates a SyndicationCategory object with the specified term property.

    public SyndicationCategory(System.String)public SyndicationCategory(System.String)Public Function SyndicationCategory(System.String) As

    Parameters

    • term
      System.String
      System.String
      System.String
      System.String

      A string that identifies the category. This parameter represents the required term attribute on atom:category or the text content of the category element in RSS 2.0.

  • SyndicationCategory(System.String,System.String,System.String)
    SyndicationCategory(System.String,System.String,System.String)
    SyndicationCategory(System.String,System.String,System.String)
    SyndicationCategory(System.String,System.String,System.String)

    Creates SyndicationCategory object with the specified property values.

    public SyndicationCategory(System.String,System.String,System.String)public SyndicationCategory(System.String,System.String,System.String)Public Function SyndicationCategory(System.String,System.String,System.String) As

    Parameters

    • term
      System.String
      System.String
      System.String
      System.String

      A string that identifies the category.

    • scheme
      System.String
      System.String
      System.String
      System.String

      The scheme of the category.

    • label
      System.String
      System.String
      System.String
      System.String

      A label for display in end-user applications.

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>

    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 Uri

    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>

    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
  • Label
    Label
    Label
    Label

    Gets or sets the label for the category. This property represents the label attribute on atom:category. It provides a label for display in end-user applications.

    public string Label { get; set; }public string Label { get; set; }Public ReadWrite Property Label As string

    Property Value

    • string
      string
      string
      string

      The label attribute on atom:category.

  • 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 string

    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 string

    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 string

    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 string

    Property Value

    • string
      string
      string
      string

      The text content of the element.

  • Scheme
    Scheme
    Scheme
    Scheme

    Gets or sets the scheme of the category. This property represents the scheme attribute on atom:category or the domain attribute on the category element in RSS 2.0.

    public string Scheme { get; set; }public string Scheme { get; set; }Public ReadWrite Property Scheme As string

    Property Value

    • string
      string
      string
      string

      The scheme attribute on atom:category or the domain attribute on the category element in RSS 2.0.

  • Term
    Term
    Term
    Term

    Gets or sets a string that identifies the category. This property represents the required term attribute on atom:category or the text content of the category element in RSS 2.0.

    public string Term { get; set; }public string Term { get; set; }Public ReadWrite Property Term As string

    Property Value

    • string
      string
      string
      string

      The required term attribute on atom:category or the text content of the category element in RSS 2.0.

Methods

  • GetXmlDocument(Windows.Web.Syndication.SyndicationFormat)
    GetXmlDocument(Windows.Web.Syndication.SyndicationFormat)
    GetXmlDocument(Windows.Web.Syndication.SyndicationFormat)
    GetXmlDocument(Windows.Web.Syndication.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(Windows.Web.Syndication.SyndicationFormat)public XmlDocument GetXmlDocument(Windows.Web.Syndication.SyndicationFormat)Public Function GetXmlDocument(Windows.Web.Syndication.SyndicationFormat) As XmlDocument

    Parameters

    Returns

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

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

Details

Assembly

Windows.Web.Syndication.dll