Sdílet prostřednictvím


SyndicationItem Konstruktory

Definice

Inicializuje novou instanci SyndicationItem třídy.

Přetížení

SyndicationItem()

Inicializuje novou instanci SyndicationItem třídy.

SyndicationItem(SyndicationItem)

Inicializuje novou instanci SyndicationItem třídy se zadanou SyndicationItem instancí.

SyndicationItem(String, String, Uri)

Inicializuje novou instanci SyndicationItem třídy se zadaným názvem, obsahem a odkazem.

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

Inicializuje novou instanci SyndicationItem třídy.

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

Inicializuje novou instanci SyndicationItem třídy.

SyndicationItem()

Inicializuje novou instanci SyndicationItem třídy.

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

Platí pro

SyndicationItem(SyndicationItem)

Inicializuje novou instanci SyndicationItem třídy se zadanou SyndicationItem instancí.

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)

Parametry

source
SyndicationItem

Instance SyndicationItem použitá k inicializaci nové SyndicationItem instance.

Platí pro

SyndicationItem(String, String, Uri)

Inicializuje novou instanci SyndicationItem třídy se zadaným názvem, obsahem a odkazem.

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)

Parametry

title
String

Název položky.

content
String

Obsah položky.

itemAlternateLinkfeedAlternateLink
Uri

Adresa URL položky.

Příklady

Následující příklad ukazuje, jak volat tento konstruktor.

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")

Platí pro

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

Inicializuje novou instanci SyndicationItem třídy.

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)

Parametry

title
String

Název položky syndikace.

content
SyndicationContent

SyndicationContent Instance obsahující obsah položky syndikace.

itemAlternateLinkfeedAlternateLink
Uri

Alternativní identifikátor URI pro položku syndikace

id
String

ID položky syndikace.

lastUpdatedTime
DateTimeOffset

Položka DateTimeOffset syndikace obsahuje poslední aktualizaci položky syndikace.

Příklady

Následující kód ukazuje, jak tento konstruktor volat.

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)

Platí pro

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

Inicializuje novou instanci SyndicationItem třídy.

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)

Parametry

title
String

Název položky syndikace.

content
String

Obsah položky syndikace

itemAlternateLinkfeedAlternateLink
Uri

Alternativní identifikátor URI pro položku syndikace

id
String

ID položky syndikace.

lastUpdatedTime
DateTimeOffset

Položka DateTimeOffset syndikace obsahuje poslední aktualizaci položky syndikace.

Příklady

Následující kód ukazuje, jak tento konstruktor volat.

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)

Platí pro