SyndicationItem.Title Właściwość

Definicja

Pobiera lub ustawia tytuł elementu syndykacji.

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

Wartość właściwości

TextSyndicationContent

TextSyndicationContent Obiekt, który zawiera tytuł elementu syndykacji.

Przykłady

Poniższy kod pokazuje, jak ustawić Title właściwość w wystąpieniu SyndicationItem .

SyndicationItem item = new SyndicationItem();
item.Title = new TextSyndicationContent("Item Title");
Dim item As New SyndicationItem()
item.Title = New TextSyndicationContent("Item Title")

Poniższy kod XML pokazuje, jak Title właściwość jest serializowana do atomu 1.0.

<title type="text">My Item</title>

Poniższy kod XML pokazuje, jak Title właściwość jest serializowana do rss 2.0.

<title>Mój element</title>

Uwagi

Po serializacji do Atom 1.0 lub RSS 2.0 ta właściwość jest zapisywana w elemencie <title> .

Dotyczy