SyndicationFeed SyndicationFeed SyndicationFeed SyndicationFeed Constructors

Definition

Überlädt

SyndicationFeed() SyndicationFeed() SyndicationFeed()

Initialisiert eine neue Instanz der SyndicationFeed-Klasse. Initializes a new instance of the SyndicationFeed class.

SyndicationFeed(IEnumerable<SyndicationItem>) SyndicationFeed(IEnumerable<SyndicationItem>) SyndicationFeed(IEnumerable<SyndicationItem>) SyndicationFeed(IEnumerable<SyndicationItem>)

Initialisiert eine neue Instanz der SyndicationFeed-Klasse mit der angegebenen Auflistung von SyndicationItem-Objekten. Initializes a new instance of the SyndicationFeed class with the specified collection of SyndicationItem objects.

SyndicationFeed(SyndicationFeed, Boolean) SyndicationFeed(SyndicationFeed, Boolean) SyndicationFeed(SyndicationFeed, Boolean) SyndicationFeed(SyndicationFeed, Boolean)

Erstellt eine neue Instanz der SyndicationFeed-Klasse mit dem festgelegten Feed. Creates a new instance of the SyndicationFeed class with the specified feed.

SyndicationFeed(String, String, Uri) SyndicationFeed(String, String, Uri) SyndicationFeed(String, String, Uri) SyndicationFeed(String, String, Uri)

Initialisiert eine neue Instanz der Klasse SyndicationFeed mit dem angegebenen Titel, der Beschreibung und der Uniform Resource Identifier (URI). Initializes a new instance of the SyndicationFeed class with the specified title, description, and Uniform Resource Identifier (URI).

SyndicationFeed(String, String, Uri, IEnumerable<SyndicationItem>) SyndicationFeed(String, String, Uri, IEnumerable<SyndicationItem>) SyndicationFeed(String, String, Uri, IEnumerable<SyndicationItem>) SyndicationFeed(String, String, Uri, IEnumerable<SyndicationItem>)

Initialisiert eine neue Instanz der Klasse SyndicationFeed mit dem angegebenen Titel, der Beschreibung, der URI und der Sammlung von SyndicationItem-Objekten. Initializes a new instance of the SyndicationFeed class with the specified title, description, URI, and collection of SyndicationItem objects.

SyndicationFeed(String, String, Uri, String, DateTimeOffset) SyndicationFeed(String, String, Uri, String, DateTimeOffset) SyndicationFeed(String, String, Uri, String, DateTimeOffset) SyndicationFeed(String, String, Uri, String, DateTimeOffset)

Erstellt eine neue Instanz der SyndicationFeed-Klasse. Creates a new instance of the SyndicationFeed class.

SyndicationFeed(String, String, Uri, String, DateTimeOffset, IEnumerable<SyndicationItem>) SyndicationFeed(String, String, Uri, String, DateTimeOffset, IEnumerable<SyndicationItem>) SyndicationFeed(String, String, Uri, String, DateTimeOffset, IEnumerable<SyndicationItem>) SyndicationFeed(String, String, Uri, String, DateTimeOffset, IEnumerable<SyndicationItem>)

Erstellt eine neue Instanz der SyndicationFeed-Klasse. Creates a new instance of the SyndicationFeed class.

SyndicationFeed() SyndicationFeed() SyndicationFeed()

Initialisiert eine neue Instanz der SyndicationFeed-Klasse. Initializes a new instance of the SyndicationFeed class.

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

SyndicationFeed(IEnumerable<SyndicationItem>) SyndicationFeed(IEnumerable<SyndicationItem>) SyndicationFeed(IEnumerable<SyndicationItem>) SyndicationFeed(IEnumerable<SyndicationItem>)

Initialisiert eine neue Instanz der SyndicationFeed-Klasse mit der angegebenen Auflistung von SyndicationItem-Objekten. Initializes a new instance of the SyndicationFeed class with the specified collection of SyndicationItem objects.

public:
 SyndicationFeed(System::Collections::Generic::IEnumerable<System::ServiceModel::Syndication::SyndicationItem ^> ^ items);
public SyndicationFeed (System.Collections.Generic.IEnumerable<System.ServiceModel.Syndication.SyndicationItem> items);
new System.ServiceModel.Syndication.SyndicationFeed : seq<System.ServiceModel.Syndication.SyndicationItem> -> System.ServiceModel.Syndication.SyndicationFeed
Public Sub New (items As IEnumerable(Of SyndicationItem))

Parameter

items
IEnumerable<SyndicationItem>

Eine Auflistung von SyndicationItem-Objekten. A collection of SyndicationItem objects.

Beispiele

Im folgenden Beispiel wird der Aufruf dieses Konstruktors veranschaulicht.The following example demonstrates how to call this constructor.

List<SyndicationItem> items = new List<SyndicationItem>();
SyndicationItem item1 = new SyndicationItem();
item1.Title = new TextSyndicationContent("Item 1");
item1.Summary = new TextSyndicationContent("This is Item 1's summary");
item1.Authors.Add(new SyndicationPerson("jesper@contoso.com", "Jesper Aaberg", "http://contoso/jesper"));
item1.Content = SyndicationContent.CreatePlaintextContent("This is the content for Item 1");
items.Add(item1);

SyndicationItem item2 = new SyndicationItem();
item2.Title = new TextSyndicationContent("Item 2");
item2.Summary = new TextSyndicationContent("This is Item 2's summary");
item2.Authors.Add(new SyndicationPerson("lene@contoso.com", "Lene Aaling", "http://contoso/lene"));
item2.Content = SyndicationContent.CreatePlaintextContent("This is the content for Item 2");
items.Add(item2);

SyndicationFeed feed = new SyndicationFeed(items);

Dim items As Collection(Of SyndicationItem) = New Collection(Of SyndicationItem)()
Dim item1 As SyndicationItem = New SyndicationItem()
item1.Title = New TextSyndicationContent("Item 1")
item1.Summary = New TextSyndicationContent("This is Item 1's summary")
item1.Authors.Add(New SyndicationPerson("Jesper@contoso.com", "Jesper Aaberg", "http:'contoso/jesper"))
item1.Content = SyndicationContent.CreatePlaintextContent("This is the content for Item 1")

Dim item2 As SyndicationItem = New SyndicationItem()
item2.Title = New TextSyndicationContent("Item 2")
item2.Summary = New TextSyndicationContent("This is Item 2's summary")
item2.Authors.Add(New SyndicationPerson("lene@contoso.com", "Lene Aaling", "http:'contoso/lene"))
item2.Content = SyndicationContent.CreatePlaintextContent("This is the content for Item 2")

Dim feed As SyndicationFeed = New SyndicationFeed(items)

Hinweise

Die Auflistung von SyndicationItem-Objekten wird gepuffert, die in diesen Konstruktor übergeben wird.The collection of SyndicationItem objects passed into this constructor is buffered.

SyndicationFeed(SyndicationFeed, Boolean) SyndicationFeed(SyndicationFeed, Boolean) SyndicationFeed(SyndicationFeed, Boolean) SyndicationFeed(SyndicationFeed, Boolean)

Erstellt eine neue Instanz der SyndicationFeed-Klasse mit dem festgelegten Feed. Creates a new instance of the SyndicationFeed class with the specified feed.

protected:
 SyndicationFeed(System::ServiceModel::Syndication::SyndicationFeed ^ source, bool cloneItems);
protected SyndicationFeed (System.ServiceModel.Syndication.SyndicationFeed source, bool cloneItems);
new System.ServiceModel.Syndication.SyndicationFeed : System.ServiceModel.Syndication.SyndicationFeed * bool -> System.ServiceModel.Syndication.SyndicationFeed
Protected Sub New (source As SyndicationFeed, cloneItems As Boolean)

Parameter

source
SyndicationFeed SyndicationFeed SyndicationFeed SyndicationFeed

Das SyndicationFeed, das zur Initialisierung der neuen Instanz verwendet wird. The SyndicationFeed used to initialize the new instance.

cloneItems
Boolean Boolean Boolean Boolean

Ein Wert, der angibt, ob die Elemente in der Quellinstanz zu klonen. A value that specifies whether to clone the items in the source instance.

Hinweise

Lautet der Parameter cloneItems``true, werden alle SyndicationItem-Instanzen in der Quell-SyndicationFeed-Instanz geklont und der Items-Sammlung der neuen SyndicationFeed-Instanz hinzugefügt.If the cloneItems parameter is true, all SyndicationItem instances in the source SyndicationFeed instance are cloned and added to the Items collection of the new SyndicationFeed instance. Lautet der Parameter cloneItems false, enthält die Items-Sammlung der neuen Instanz SyndicationFeed Verweise auf die vorhandenen SyndicationItem-Instanzen.If the cloneItems parameter is false, the Items collection of the new SyndicationFeed instance contains references to the existing SyndicationItem instances.

SyndicationFeed(String, String, Uri) SyndicationFeed(String, String, Uri) SyndicationFeed(String, String, Uri) SyndicationFeed(String, String, Uri)

Initialisiert eine neue Instanz der Klasse SyndicationFeed mit dem angegebenen Titel, der Beschreibung und der Uniform Resource Identifier (URI). Initializes a new instance of the SyndicationFeed class with the specified title, description, and Uniform Resource Identifier (URI).

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

Parameter

title
String String String String

Der Titel des Feeds. The title of the feed.

description
String String String String

Die Beschreibung des Feed. The description of the feed.

feedAlternateLink
Uri Uri Uri Uri

Die URI des Feed. The URI for the feed.

Beispiele

Im folgenden Beispiel wird der Aufruf dieses Konstruktors veranschaulicht.The following example demonstrates how to call this constructor.

SyndicationFeed feed = new SyndicationFeed("My Data Feed", "This is a sample feed", new Uri("http://localhost/MyDataService"));
Dim feed As SyndicationFeed = New SyndicationFeed("My Data Feed", "This is a sample feed", New Uri("http:'localhost/MyDataService"))

SyndicationFeed(String, String, Uri, IEnumerable<SyndicationItem>) SyndicationFeed(String, String, Uri, IEnumerable<SyndicationItem>) SyndicationFeed(String, String, Uri, IEnumerable<SyndicationItem>) SyndicationFeed(String, String, Uri, IEnumerable<SyndicationItem>)

Initialisiert eine neue Instanz der Klasse SyndicationFeed mit dem angegebenen Titel, der Beschreibung, der URI und der Sammlung von SyndicationItem-Objekten. Initializes a new instance of the SyndicationFeed class with the specified title, description, URI, and collection of SyndicationItem objects.

public:
 SyndicationFeed(System::String ^ title, System::String ^ description, Uri ^ feedAlternateLink, System::Collections::Generic::IEnumerable<System::ServiceModel::Syndication::SyndicationItem ^> ^ items);
public SyndicationFeed (string title, string description, Uri feedAlternateLink, System.Collections.Generic.IEnumerable<System.ServiceModel.Syndication.SyndicationItem> items);
new System.ServiceModel.Syndication.SyndicationFeed : string * string * Uri * seq<System.ServiceModel.Syndication.SyndicationItem> -> System.ServiceModel.Syndication.SyndicationFeed
Public Sub New (title As String, description As String, feedAlternateLink As Uri, items As IEnumerable(Of SyndicationItem))

Parameter

title
String String String String

Der Titel des Feeds. The title of the feed.

description
String String String String

Die Beschreibung des Feed. The description of the feed.

feedAlternateLink
Uri Uri Uri Uri

Die URI des Feed. The URI for the feed.

items
IEnumerable<SyndicationItem>

Eine Auflistung von SyndicationItem-Objekten. A collection of SyndicationItem objects.

Beispiele

Im folgenden Beispiel wird der Aufruf dieses Konstruktors veranschaulicht.The following example demonstrates how to call this constructor.

List<SyndicationItem> items = new List<SyndicationItem>();
SyndicationItem item1 = new SyndicationItem();
item1.Title = new TextSyndicationContent("Item 1");
item1.Summary = new TextSyndicationContent("This is Item 1's summary");
item1.Authors.Add(new SyndicationPerson("jesper@contoso.com", "Jesper Aaberg", "http://contoso/jesper"));
item1.Content = SyndicationContent.CreatePlaintextContent("This is the content for Item 1");
items.Add(item1);

SyndicationItem item2 = new SyndicationItem();
item2.Title = new TextSyndicationContent("Item 2");
item2.Summary = new TextSyndicationContent("This is Item 2's summary");
item2.Authors.Add(new SyndicationPerson("lene@contoso.com", "Lene Aaling", "http://contoso/lene"));
item2.Content = SyndicationContent.CreatePlaintextContent("This is the content for Item 2");
items.Add(item2);

SyndicationFeed feed = new SyndicationFeed("My Data Feed", "This is a sample feed", new Uri("http://localhost/MyDataService"), items);
Dim items As Collection(Of SyndicationItem) = New Collection(Of SyndicationItem)()
Dim item1 As SyndicationItem = New SyndicationItem()
item1.Title = New TextSyndicationContent("Item 1")
item1.Summary = New TextSyndicationContent("This is Item 1's summary")
item1.Authors.Add(New SyndicationPerson("jesper@contoso.com", "Jesper Aaberg", "http:'contoso/jesper"))
item1.Content = SyndicationContent.CreatePlaintextContent("This is the content for Item 1")
Dim item2 As SyndicationItem = New SyndicationItem()
item2.Title = New TextSyndicationContent("Item 2")
item2.Summary = New TextSyndicationContent("This is Item 2's summary")
item2.Authors.Add(New SyndicationPerson("lene@contoso.com", "Lene Aaling", "http:'contoso/lene"))
item2.Content = SyndicationContent.CreatePlaintextContent("This is the content for Item 2")

Dim feed As SyndicationFeed = New SyndicationFeed("My Data Feed", "This is a sample feed", New Uri("http:'localhost/MyDataService"), items)

SyndicationFeed(String, String, Uri, String, DateTimeOffset) SyndicationFeed(String, String, Uri, String, DateTimeOffset) SyndicationFeed(String, String, Uri, String, DateTimeOffset) SyndicationFeed(String, String, Uri, String, DateTimeOffset)

Erstellt eine neue Instanz der SyndicationFeed-Klasse. Creates a new instance of the SyndicationFeed class.

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

Parameter

title
String String String String

Der Syndication-Feedtitel. The syndication feed title.

description
String String String String

Die Syndication-Feed-Beschreibung. The syndication feed description.

feedAlternateLink
Uri Uri Uri Uri

Die alternative URI für den Syndication-Feed The alternate URI for the syndication feed.

id
String String String String

Die ID des Syndication-Feed. The ID of the syndication feed.

lastUpdatedTime
DateTimeOffset DateTimeOffset DateTimeOffset DateTimeOffset

Die DateTimeOffset mit dem Zeitpunkt der letzten Aktualisierung des Syndication-Feed. The DateTimeOffset that contains the last time the syndication feed was updated.

Beispiele

Das folgende Codebeispiel zeigt, wie dieser Konstruktor aufgerufen wird.The following code shows how to call this constructor.

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

SyndicationFeed(String, String, Uri, String, DateTimeOffset, IEnumerable<SyndicationItem>) SyndicationFeed(String, String, Uri, String, DateTimeOffset, IEnumerable<SyndicationItem>) SyndicationFeed(String, String, Uri, String, DateTimeOffset, IEnumerable<SyndicationItem>) SyndicationFeed(String, String, Uri, String, DateTimeOffset, IEnumerable<SyndicationItem>)

Erstellt eine neue Instanz der SyndicationFeed-Klasse. Creates a new instance of the SyndicationFeed class.

public:
 SyndicationFeed(System::String ^ title, System::String ^ description, Uri ^ feedAlternateLink, System::String ^ id, DateTimeOffset lastUpdatedTime, System::Collections::Generic::IEnumerable<System::ServiceModel::Syndication::SyndicationItem ^> ^ items);
public SyndicationFeed (string title, string description, Uri feedAlternateLink, string id, DateTimeOffset lastUpdatedTime, System.Collections.Generic.IEnumerable<System.ServiceModel.Syndication.SyndicationItem> items);
new System.ServiceModel.Syndication.SyndicationFeed : string * string * Uri * string * DateTimeOffset * seq<System.ServiceModel.Syndication.SyndicationItem> -> System.ServiceModel.Syndication.SyndicationFeed
Public Sub New (title As String, description As String, feedAlternateLink As Uri, id As String, lastUpdatedTime As DateTimeOffset, items As IEnumerable(Of SyndicationItem))

Parameter

title
String String String String

Der Syndication-Feedtitel. The syndication feed title.

description
String String String String

Die Syndication-Feed-Beschreibung. The syndication feed description.

feedAlternateLink
Uri Uri Uri Uri

Die alternative URI für den Syndication-Feed The alternate URI for the syndication feed.

id
String String String String

Die ID des Syndication-Feed. The ID of the syndication feed.

lastUpdatedTime
DateTimeOffset DateTimeOffset DateTimeOffset DateTimeOffset

Die DateTimeOffset mit dem Zeitpunkt der letzten Aktualisierung des Syndication-Feed. The DateTimeOffset that contains the last time the syndication feed was updated.

items
IEnumerable<SyndicationItem>

Eine Auflistung von SyndicationItem-Objekten. A collection of SyndicationItem objects.

Beispiele

Das folgende Codebeispiel zeigt, wie dieser Konstruktor aufgerufen wird.The following code shows how to call this constructor.

List<SyndicationItem> items = new List<SyndicationItem>();
SyndicationItem item1 = new SyndicationItem();
item1.Title = new TextSyndicationContent("Item 1");
item1.Summary = new TextSyndicationContent("This is Item 1's summary");
item1.Authors.Add(new SyndicationPerson("jesper@contoso.com", "Jesper Aaberg", "http://contoso/jesper"));
item1.Content = SyndicationContent.CreatePlaintextContent("This is the content for Item 1");
items.Add(item1);

SyndicationItem item2 = new SyndicationItem();
item2.Title = new TextSyndicationContent("Item 2");
item2.Summary = new TextSyndicationContent("This is Item 2's summary");
item2.Authors.Add(new SyndicationPerson("lene@contoso.com", "Lene Aaling", "http://contoso/lene"));
item2.Content = SyndicationContent.CreatePlaintextContent("This is the content for Item 2");
items.Add(item2);

SyndicationFeed feed = new SyndicationFeed("Feed Title", "Feed Description", new Uri("http://Feed/Alternate/Link"), "FeedID", DateTime.Now, items);
Dim items As New List(Of SyndicationItem)()
Dim item1 = New SyndicationItem()
item1.Title = New TextSyndicationContent("Item 1")
item1.Summary = New TextSyndicationContent("This is Item 1's summary")
item1.Authors.Add(New SyndicationPerson("jesper@contoso.com", "Jesper Aaberg", "http:'contoso/jesper"))
item1.Content = SyndicationContent.CreatePlaintextContent("This is the content for Item 1")
items.Add(item1)

Dim item2 = New SyndicationItem()
item2.Title = New TextSyndicationContent("Item 2")
item2.Summary = New TextSyndicationContent("This is Item 2's summary")
item2.Authors.Add(New SyndicationPerson("lene@contoso.com", "Lene Aaling", "http:'contoso/lene"))
item2.Content = SyndicationContent.CreatePlaintextContent("This is the content for Item 2")
items.Add(item2)

Dim feed As New SyndicationFeed("Feed Title", "Feed Description", New Uri("http:'Feed/Alternate/Link"), "FeedID", DateTime.Now, items)

Gilt für: