Idioma

SyndicationFeed.Id Propriedade

Definição

Obtém ou define o ID do feed.

public:
 property System::String ^ Id { System::String ^ get(); void set(System::String ^ value); };
public string Id { get; set; }
member this.Id : string with get, set
Public Property Id As String

Valor de Propriedade

O ID do feed.

Exemplos

O código seguinte mostra como definir a Id propriedade numa SyndicationFeed instância.

SyndicationFeed feed = new SyndicationFeed("Feed Title", "Feed Description", new Uri("http://Feed/Alternate/Link"), "FeedID", DateTime.Now);
feed.Id = "SyndicationFeedId";
Dim feed As New SyndicationFeed("Feed Title", "Feed Description", New Uri("http:'Feed/Alternate/Link"), "FeedID", DateTime.Now)
feed.Id = "SyndicationFeedId"

O XML seguinte mostra como a Id propriedade é serializada para Atom 1.0.

<id>FeedID</id>

O XML seguinte mostra como a Id propriedade é serializada para RSS 2.0.

<a10:id>FeedID</a10:id>

Observações

Quando serializado para Atom 1.0, o Id é escrito num <id> elemento.

Quando serializado para RSS 2.0, o Id é escrito num <a10:id> elemento.

Aplica-se a