The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
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
var syndicationCategory = new Windows.Web.Syndication.SyndicationCategory(string); var syndicationCategory = new Windows.Web.Syndication.SyndicationCategory(string, string, string); var syndicationCategory = new Windows.Web.Syndication.SyndicationCategory();
Attributes
- ActivatableAttribute(NTDDI_WIN8)
- ActivatableAttribute(Windows.Web.Syndication.ISyndicationCategoryFactory, NTDDI_WIN8)
- DualApiPartitionAttribute()
- MarshalingBehaviorAttribute(Agile)
- ThreadingAttribute(Both)
- VersionAttribute(NTDDI_WIN8)
Members
The SyndicationCategory class has these types of members:
Constructors
The SyndicationCategory class has these constructors.
| Constructor | Description |
|---|---|
| SyndicationCategory() | Creates a SyndicationCategory object. |
| SyndicationCategory(String) | Creates a SyndicationCategory object with the specified term property. |
| SyndicationCategory(String, String, String) | Creates SyndicationCategory object with the specified property values. |
Methods
The SyndicationCategory class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.
| Method | Description |
|---|---|
| GetXmlDocument | 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. |
Properties
The SyndicationCategory class has these properties.
| Property | Access type | Description |
|---|---|---|
| Read-only | Gets the list of custom attributes of the element. | |
| Read/write | 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. | |
| Read-only | Gets the list of child elements within the element. | |
| Read/write | 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. | |
| Read/write | 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. | |
| Read/write | Gets or sets the local name of the element. | |
| Read/write | Gets or sets the namespace of the element. | |
| Read/write | Gets or sets the text content of the element. If the element contains only child elements, this property is NULL. | |
| Read/write | 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. | |
| Read/write | 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. |
Remarks
The following table maps SyndicationCategory properties to RSS and Atom feed elements.
| SyndicationCategory | RSS | Atom |
|---|---|---|
| Label | label (attribute) | |
| Scheme | domain (attribute) | scheme (attribute) |
| Term | (node value) | uri (attribute) |
Requirements
|
Minimum supported client | Windows 8 [Windows Store apps, desktop apps] |
|---|---|
|
Minimum supported server | Windows Server 2012 [Windows Store apps, desktop apps] |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 12/4/2012