SyndicationGenerator Class

描述用來產生摘要的代理程式或工具。這個類別會將資訊封裝在 RSS 2.0 中的 /rss/channel/generator 項目或 Atom 1.0 中的 /atom:feed/atom:generator 項目內。

語法


var syndicationGenerator = new Windows.Web.Syndication.SyndicationGenerator(string);
var syndicationGenerator = new Windows.Web.Syndication.SyndicationGenerator();

屬性

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]

成員

SyndicationGenerator類別 具有下列類型的成員:

建構函式

SyndicationGenerator類別 具有這些建構函式。

建構函式描述
SyndicationGenerator() Creates a new SyndicationGenerator object.
SyndicationGenerator(String) Creates a new SyndicationGenerator object with the specified Text property value.

 

方法

The SyndicationGenerator 類別 擁有這些方法。 使用 C#、Visual Basic 和 C++,它也會繼承方法自Object 類別.

方法描述
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.

 

屬性

SyndicationGenerator類別 擁有這些屬性。

屬性存取類型描述

AttributeExtensions

唯讀Gets the list of custom attributes of the element.

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

唯讀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.

NodeName

讀取/寫入Gets or sets the local name of the element.

NodeNamespace

讀取/寫入Gets or sets the namespace of the element.

NodeValue

讀取/寫入Gets or sets the text content of the element. If the element contains only child elements, this property is NULL.

Text

讀取/寫入Gets or sets the text that identifies the generator.

Uri

讀取/寫入Gets or sets the Uniform Resource Identifier (URI) of the syndication generator.

Version

讀取/寫入Gets or sets the version of the generator.

 

備註

下表將 SyndicationGenerator 屬性對應至 RSS 和 Atom 摘要項目。

SyndicationGeneratorRSS原子
Text (節點值)(節點值)
Uri URI (屬性)
Version version (屬性)

 

需求

支援的最小用戶端

Windows 8 [Windows 市集應用程式, 桌面應用程式]

支援的最小伺服器

Windows Server 2012 [Windows 市集應用程式, 桌面應用程式]

命名空間

Windows.Web.Syndication
Windows::Web::Syndication [C++]

Metadata

Windows.winmd

請參閱

快速入門:存取 Web 摘要
新聞訂閱範例

 

 

顯示:
© 2014 Microsoft