SyndicationCategory SyndicationCategory SyndicationCategory SyndicationCategory SyndicationCategory Class

Definition

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.

public : sealed class SyndicationCategory : ISyndicationCategory, ISyndicationNode
struct winrt::Windows::Web::Syndication::SyndicationCategory : ISyndicationCategory, ISyndicationNode
public sealed class SyndicationCategory : ISyndicationCategory, ISyndicationNode
Public NotInheritable Class SyndicationCategory Implements ISyndicationCategory, ISyndicationNode
var syndicationCategory = new syndicationCategory();
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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

SyndicationCategory() SyndicationCategory() SyndicationCategory() SyndicationCategory() SyndicationCategory()

Creates a SyndicationCategory object.

SyndicationCategory(String) SyndicationCategory(String) SyndicationCategory(String) SyndicationCategory(String) SyndicationCategory(String)

Creates a SyndicationCategory object with the specified term property.

SyndicationCategory(String, String, String) SyndicationCategory(String, String, String) SyndicationCategory(String, String, String) SyndicationCategory(String, String, String) SyndicationCategory(String, String, String)

Creates SyndicationCategory object with the specified property values.

Properties

AttributeExtensions AttributeExtensions AttributeExtensions AttributeExtensions AttributeExtensions

Gets the list of custom attributes of the element.

BaseUri 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.

ElementExtensions ElementExtensions ElementExtensions ElementExtensions ElementExtensions

Gets the list of child elements within the element.

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

Language 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.

NodeName NodeName NodeName NodeName NodeName

Gets or sets the local name of the element.

NodeNamespace NodeNamespace NodeNamespace NodeNamespace NodeNamespace

Gets or sets the namespace of the element.

NodeValue NodeValue NodeValue NodeValue NodeValue

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

Scheme 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.

Term 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.

Methods

GetXmlDocument(SyndicationFormat) 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.

See Also