SyndicationFeed.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)

속성 값

특성 확장 컬렉션을 포함하는 사전입니다.

예제

다음 코드에서는 배포 피드에 특성 확장을 추가하는 방법을 보여 줍니다.

SyndicationFeed feed = new SyndicationFeed();

//Attribute extensions are stored in a dictionary indexed by XmlQualifiedName
feed.AttributeExtensions.Add(new XmlQualifiedName("myAttribute", ""), "someValue");
Dim feed As New SyndicationFeed()

'Attribute extensions are stored in a dictionary indexed by XmlQualifiedName
feed.AttributeExtensions.Add(New XmlQualifiedName("myAttribute", ""), "someValue")

다음 XML에서는 특성 확장이 Atom 1.0으로 serialize되는 방법을 보여 줍니다.

<feed xml:lang="en-us" CustomAttribute="Value" xmlns="http://www.w3.org/2005/Atom">

다음 XML에서는 특성 확장이 RSS 2.0으로 serialize되는 방법을 보여 줍니다.

<channel CustomAttribute="Value">

설명

특성 확장은 Atom 1.0 또는 RSS 2.0 사양에 정의되지 않은 유효한 XML 특성입니다. Atom 1.0으로 직렬화되면 컬렉션의 각 사용자 지정 특성이 요소에 <atom> 기록됩니다. RSS 2.0으로 직렬화되면 각 사용자 지정 특성이 요소에 <channel> 기록됩니다. 특성 확장을 추가하는 예제는 느슨하게 형식화된 확장 샘플을 참조하세요.

적용 대상