SyndicationText Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public ref class SyndicationText sealed : ISyndicationText
/// [Windows.Foundation.Metadata.Activatable(Windows.Web.Syndication.ISyndicationTextFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SyndicationText final : ISyndicationText
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Activatable(Windows.Web.Syndication.ISyndicationTextFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class SyndicationText final : ISyndicationText
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Web.Syndication.ISyndicationTextFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class SyndicationText : ISyndicationText
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Web.Syndication.ISyndicationTextFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class SyndicationText : ISyndicationText
function SyndicationText(text, type)
Public NotInheritable Class SyndicationText
Implements ISyndicationText
- Inheritance
- Attributes
- Implements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
The following table maps SyndicationText properties to RSS and Atom feed elements.
SyndicationText | RSS | Atom |
---|---|---|
Text | (node value) | (node value) |
Type | --- | type (attribute) |
Xml | --- | (xhtml node value) |
Syndication |
Creates a new SyndicationText object. |
Syndication |
Creates a new SyndicationText object with the specified Text and Type property values. |
Syndication |
Creates a new SyndicationText object with the specified Text property value. |
Attribute |
Gets the list of custom attributes of the element. |
Base |
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. |
Element |
Gets the list of child elements within the element. |
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. |
Node |
Gets or sets the local name of the element. |
Node |
Gets or sets the namespace of the element. |
Node |
Gets or sets the text content of the element. If the element contains only child elements, this property is NULL. |
Text |
Gets the content of a text content construct like atom:title. |
Type |
Gets or sets the type of the content. |
Xml |
Gets or sets the XML content. |
Get |
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. |
Product | Versions |
---|---|
WinRT | Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |