SyndicationLink.AttributeExtensions プロパティ

定義

リンクの属性の拡張を取得します。

public:
 property System::Collections::Generic::Dictionary<System::Xml::XmlQualifiedName ^, System::String ^> ^ AttributeExtensions { System::Collections::Generic::Dictionary<System::Xml::XmlQualifiedName ^, System::String ^> ^ get(); };
public System.Collections.Generic.Dictionary<System.Xml.XmlQualifiedName,string> AttributeExtensions { get; }
member this.AttributeExtensions : System.Collections.Generic.Dictionary<System.Xml.XmlQualifiedName, string>
Public ReadOnly Property AttributeExtensions As Dictionary(Of XmlQualifiedName, String)

プロパティ値

Dictionary<XmlQualifiedName,String>

属性の拡張のコレクションを含むディクショナリ。

次のコードは、属性拡張を配信リンクに書き込む方法を示しています。

SyndicationLink link = new SyndicationLink(new Uri("http://server/link"));
link.AttributeExtensions.Add(new XmlQualifiedName("myAttribute", ""), "someValue");
Dim link As New SyndicationLink(New Uri("http://server/link"))
link.AttributeExtensions.Add(New XmlQualifiedName("myAttribute", ""), "someValue")

注釈

AttributeExtensions を使用して、カスタム属性を SyndicationLink に追加できます。 Atom 1.0 にシリアル化する場合、カスタム属性は <link> 要素内に表示されます。 RSS 2.0 にシリアル化する場合、カスタム属性は <a10:link> 要素内に表示されます。 有効な XML 属性を追加できます。

適用対象