SyndicationLink.AttributeExtensions Property
Definition
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.
Gets the attribute extensions of the link.
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)
Property Value
A dictionary that contains a collection of attribute extensions.
Examples
The following code shows how to add an attribute extension to a syndication link.
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")
Remarks
AttributeExtensions allows you to add custom attributes to the SyndicationLink. When serialized to Atom 1.0, the custom attributes appear within the <link>
element. When serialized to RSS 2.0, the custom attributes appear in the <a10:link>
element. Any valid XML attribute can be added.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기