SyndicationLink.ElementExtensions 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取 . 的 SyndicationLink元素扩展。
public:
property System::ServiceModel::Syndication::SyndicationElementExtensionCollection ^ ElementExtensions { System::ServiceModel::Syndication::SyndicationElementExtensionCollection ^ get(); };
public System.ServiceModel.Syndication.SyndicationElementExtensionCollection ElementExtensions { get; }
member this.ElementExtensions : System.ServiceModel.Syndication.SyndicationElementExtensionCollection
Public ReadOnly Property ElementExtensions As SyndicationElementExtensionCollection
属性值
一个包含 .. 的元素扩展的SyndicationLink元素SyndicationElementExtensionCollection。
示例
以下代码演示如何向联合链接添加元素扩展。
SyndicationLink link = new SyndicationLink();
link.ElementExtensions.Add("simpleString", "", "hello, world!");
Dim link As New SyndicationLink()
link.ElementExtensions.Add("simpleString", "", "hello, world!")
注解
元素扩展是在 Atom 1.0 或 RSS 2.0 规范中未指定的有效 XML 元素。 可以添加任何有效的 XML 元素作为扩展,前提是其命名空间不同于封闭命名空间。