Aracılığıyla paylaş


SyndicationItem.Summary Özellik

Tanım

Dağıtım öğesinin özetini alır veya ayarlar.

public:
 property System::ServiceModel::Syndication::TextSyndicationContent ^ Summary { System::ServiceModel::Syndication::TextSyndicationContent ^ get(); void set(System::ServiceModel::Syndication::TextSyndicationContent ^ value); };
public System.ServiceModel.Syndication.TextSyndicationContent Summary { get; set; }
member this.Summary : System.ServiceModel.Syndication.TextSyndicationContent with get, set
Public Property Summary As TextSyndicationContent

Özellik Değeri

TextSyndicationContent Öğenin özetini içeren bir.

Örnekler

Aşağıdaki kod, bir SyndicationItem örnekte özelliğinin Summary nasıl ayarlandığını gösterir.

SyndicationItem item = new SyndicationItem("Item Title", "Item Content", new Uri("http://Item/Alternate/Link"));
item.Summary = new TextSyndicationContent("This is a syndication item summary");
Dim item As New SyndicationItem("Item Title", "Item Content", New Uri("http:' Item/Alternate/Link"))
item.Summary = New TextSyndicationContent("This is a syndication item summary")

Aşağıdaki XML özelliğin Summary Atom 1.0'a nasıl seri hale getirileceğini gösterir.

<summary type="text">this is a summary for my item</summary>

Aşağıdaki XML özelliğin Summary RSS 2.0'a nasıl seri hale getirileceğini gösterir.

<description>this is a summary for my item</description>

Açıklamalar

Atom 1.0'a seri hale getirildiğinde, bu özellik bir <summary> öğeye yazılır. RSS 2.0'a seri hale getirildiğinde, bu özellik bir <description> öğeye yazılır.

Şunlara uygulanır