Compartir vía


SyndicationItem Constructores

Definición

Inicializa una nueva instancia de la clase SyndicationItem.

Sobrecargas

SyndicationItem()

Inicializa una nueva instancia de la clase SyndicationItem.

SyndicationItem(SyndicationItem)

Inicializa una nueva instancia de la clase SyndicationItem con la instancia de SyndicationItem especificada.

SyndicationItem(String, String, Uri)

Inicializa una nueva instancia de la clase SyndicationItem con el título, contenido y vínculo especificados.

SyndicationItem(String, SyndicationContent, Uri, String, DateTimeOffset)

Inicializa una nueva instancia de la clase SyndicationItem.

SyndicationItem(String, String, Uri, String, DateTimeOffset)

Inicializa una nueva instancia de la clase SyndicationItem.

SyndicationItem()

Inicializa una nueva instancia de la clase SyndicationItem.

public:
 SyndicationItem();
public SyndicationItem ();
Public Sub New ()

Se aplica a

SyndicationItem(SyndicationItem)

Inicializa una nueva instancia de la clase SyndicationItem con la instancia de SyndicationItem especificada.

protected:
 SyndicationItem(System::ServiceModel::Syndication::SyndicationItem ^ source);
protected SyndicationItem (System.ServiceModel.Syndication.SyndicationItem source);
new System.ServiceModel.Syndication.SyndicationItem : System.ServiceModel.Syndication.SyndicationItem -> System.ServiceModel.Syndication.SyndicationItem
Protected Sub New (source As SyndicationItem)

Parámetros

source
SyndicationItem

Una instancia de SyndicationItem utilizada para inicializar la nueva instancia de SyndicationItem.

Se aplica a

SyndicationItem(String, String, Uri)

Inicializa una nueva instancia de la clase SyndicationItem con el título, contenido y vínculo especificados.

public:
 SyndicationItem(System::String ^ title, System::String ^ content, Uri ^ itemAlternateLink);
public:
 SyndicationItem(System::String ^ title, System::String ^ content, Uri ^ feedAlternateLink);
public SyndicationItem (string title, string content, Uri itemAlternateLink);
public SyndicationItem (string title, string content, Uri feedAlternateLink);
new System.ServiceModel.Syndication.SyndicationItem : string * string * Uri -> System.ServiceModel.Syndication.SyndicationItem
new System.ServiceModel.Syndication.SyndicationItem : string * string * Uri -> System.ServiceModel.Syndication.SyndicationItem
Public Sub New (title As String, content As String, itemAlternateLink As Uri)
Public Sub New (title As String, content As String, feedAlternateLink As Uri)

Parámetros

title
String

El título del elemento.

content
String

El contenido del elemento.

itemAlternateLinkfeedAlternateLink
Uri

La dirección URL del elemento.

Ejemplos

El siguiente ejemplo muestra cómo llamar a este constructor.

SyndicationItem item = new SyndicationItem("My Item", "This is some content", new Uri("http://SomeServer/MyItem"));
item.Authors.Add(new SyndicationPerson("jesper@contoso.com", "Jesper Aaberg", "http://contoso/jesper"));
item.Categories.Add(new SyndicationCategory("Category One"));
item.Contributors.Add(new SyndicationPerson("lene@contoso.com", "Lene Aaling", "http://contoso/lene"));
item.Copyright = new TextSyndicationContent("Copyright 2007");
item.Links.Add(new SyndicationLink(new Uri("http://OtherServer/Item"), "alternate", "Alternate Link", "text/html", 1000));
item.PublishDate = new DateTime(2007, 2, 23);
item.Summary = new TextSyndicationContent("this is a summary for my item");
Dim item As SyndicationItem = New SyndicationItem("My Item", "This is some content", New Uri("http:' SomeServer/MyItem"))
item.Authors.Add(New SyndicationPerson("jesper@contoso.com", "Jesper Aaberg", "http:' contoso/jesper"))
item.Categories.Add(New SyndicationCategory("Category One"))
item.Contributors.Add(New SyndicationPerson("lene@contoso.com", "Lene Aaling", "http:' contoso/lene"))
item.Copyright = New TextSyndicationContent("Copyright 2007")
item.Links.Add(New SyndicationLink(New Uri("http:' OtherServer/Item"), "alternate", "Alternate Link", "text/html", 1000))
item.PublishDate = New DateTime(2007, 2, 23)
item.Summary = New TextSyndicationContent("this is a summary for my item")

Se aplica a

SyndicationItem(String, SyndicationContent, Uri, String, DateTimeOffset)

Inicializa una nueva instancia de la clase SyndicationItem.

public:
 SyndicationItem(System::String ^ title, System::ServiceModel::Syndication::SyndicationContent ^ content, Uri ^ itemAlternateLink, System::String ^ id, DateTimeOffset lastUpdatedTime);
public:
 SyndicationItem(System::String ^ title, System::ServiceModel::Syndication::SyndicationContent ^ content, Uri ^ feedAlternateLink, System::String ^ id, DateTimeOffset lastUpdatedTime);
public SyndicationItem (string title, System.ServiceModel.Syndication.SyndicationContent content, Uri itemAlternateLink, string id, DateTimeOffset lastUpdatedTime);
public SyndicationItem (string title, System.ServiceModel.Syndication.SyndicationContent content, Uri feedAlternateLink, string id, DateTimeOffset lastUpdatedTime);
new System.ServiceModel.Syndication.SyndicationItem : string * System.ServiceModel.Syndication.SyndicationContent * Uri * string * DateTimeOffset -> System.ServiceModel.Syndication.SyndicationItem
new System.ServiceModel.Syndication.SyndicationItem : string * System.ServiceModel.Syndication.SyndicationContent * Uri * string * DateTimeOffset -> System.ServiceModel.Syndication.SyndicationItem
Public Sub New (title As String, content As SyndicationContent, itemAlternateLink As Uri, id As String, lastUpdatedTime As DateTimeOffset)
Public Sub New (title As String, content As SyndicationContent, feedAlternateLink As Uri, id As String, lastUpdatedTime As DateTimeOffset)

Parámetros

title
String

Título del elemento de distribución.

content
SyndicationContent

Una instancia de SyndicationContent que incluye el contenido del elemento de distribución.

itemAlternateLinkfeedAlternateLink
Uri

El URI alternativo para el elemento de distribución.

id
String

El id. del elemento de distribución.

lastUpdatedTime
DateTimeOffset

DateTimeOffset que contiene la última vez que la se actualizó el elemento de distribución.

Ejemplos

En el código siguiente se muestra cómo llamar a este constructor.

TextSyndicationContent content = new TextSyndicationContent("Item Content");
Uri uri = new Uri("http://Item/Alternate/Link");
SyndicationItem item = new SyndicationItem("Item Title", content, uri, "itemID", DateTimeOffset.Now);
Dim content As New TextSyndicationContent("Item Content")
Dim uri As New Uri("http:' Item/Alternate/Link")
Dim item As New SyndicationItem("Item Title", content, uri, "itemID", DateTimeOffset.Now)

Se aplica a

SyndicationItem(String, String, Uri, String, DateTimeOffset)

Inicializa una nueva instancia de la clase SyndicationItem.

public:
 SyndicationItem(System::String ^ title, System::String ^ content, Uri ^ itemAlternateLink, System::String ^ id, DateTimeOffset lastUpdatedTime);
public:
 SyndicationItem(System::String ^ title, System::String ^ content, Uri ^ feedAlternateLink, System::String ^ id, DateTimeOffset lastUpdatedTime);
public SyndicationItem (string title, string content, Uri itemAlternateLink, string id, DateTimeOffset lastUpdatedTime);
public SyndicationItem (string title, string content, Uri feedAlternateLink, string id, DateTimeOffset lastUpdatedTime);
new System.ServiceModel.Syndication.SyndicationItem : string * string * Uri * string * DateTimeOffset -> System.ServiceModel.Syndication.SyndicationItem
new System.ServiceModel.Syndication.SyndicationItem : string * string * Uri * string * DateTimeOffset -> System.ServiceModel.Syndication.SyndicationItem
Public Sub New (title As String, content As String, itemAlternateLink As Uri, id As String, lastUpdatedTime As DateTimeOffset)
Public Sub New (title As String, content As String, feedAlternateLink As Uri, id As String, lastUpdatedTime As DateTimeOffset)

Parámetros

title
String

Título del elemento de distribución.

content
String

El contenido del elemento de distribución.

itemAlternateLinkfeedAlternateLink
Uri

El URI alternativo para el elemento de distribución.

id
String

El id. del elemento de distribución.

lastUpdatedTime
DateTimeOffset

DateTimeOffset que contiene la última vez que la se actualizó el elemento de distribución.

Ejemplos

En el código siguiente se muestra cómo llamar a este constructor.

SyndicationItem item = new SyndicationItem("Item Title", "Item Content", new Uri("http://Item/Alternate/Link"), "itemID", DateTimeOffset.Now);
Dim item As New SyndicationItem("Item Title", "Item Content", New Uri("http:' Item/Alternate/Link"), "itemID", DateTimeOffset.Now)

Se aplica a