SyndicationFeed コンストラクター

定義

SyndicationFeed クラスの新しいインスタンスを初期化します。

オーバーロード

SyndicationFeed()

SyndicationFeed クラスの新しいインスタンスを初期化します。

SyndicationFeed(IEnumerable<SyndicationItem>)

指定した SyndicationFeed オブジェクトのコレクションを使用して、SyndicationItem クラスの新しいインスタンスを初期化します。

SyndicationFeed(SyndicationFeed, Boolean)

指定したフィードを使用して、SyndicationFeed クラスの新しいインスタンスを作成します。

SyndicationFeed(String, String, Uri)

指定したタイトル、説明、および URI (Uniform Resource Identifier) を使用して、SyndicationFeed クラスの新しいインスタンスを初期化します。

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

指定したタイトル、説明、URI、および SyndicationFeed オブジェクトのコレクションを使用して、SyndicationItem クラスの新しいインスタンスを初期化します。

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

SyndicationFeed クラスの新しいインスタンスを作成します。

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

SyndicationFeed クラスの新しいインスタンスを作成します。

SyndicationFeed()

SyndicationFeed クラスの新しいインスタンスを初期化します。

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

適用対象

SyndicationFeed(IEnumerable<SyndicationItem>)

指定した SyndicationFeed オブジェクトのコレクションを使用して、SyndicationItem クラスの新しいインスタンスを初期化します。

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

パラメーター

items
IEnumerable<SyndicationItem>

SyndicationItem オブジェクトのコレクション。

このコンストラクターの呼び出し方法を次の例に示します。

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)

注釈

コンストラクターに渡された SyndicationItem オブジェクトのコレクションはバッファーされます。

適用対象

SyndicationFeed(SyndicationFeed, Boolean)

指定したフィードを使用して、SyndicationFeed クラスの新しいインスタンスを作成します。

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)

パラメーター

source
SyndicationFeed

新しいインスタンスを初期化するために使用する SyndicationFeed

cloneItems
Boolean

ソース インスタンスのアイテムを複製するかどうかを指定する値。

注釈

cloneItems パラメーターが true の場合、ソース SyndicationItem インスタンス内のすべての SyndicationFeed インスタンスが複製され、新しい Items インスタンスの SyndicationFeed コレクションに追加されます。 cloneItems パラメーターが false の場合、新しい Items インスタンスの SyndicationFeed コレクションに既存の SyndicationItem インスタンスへの参照が格納されます。

適用対象

SyndicationFeed(String, String, Uri)

指定したタイトル、説明、および URI (Uniform Resource Identifier) を使用して、SyndicationFeed クラスの新しいインスタンスを初期化します。

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)

パラメーター

title
String

フィードのタイトル。

description
String

フィードの説明。

feedAlternateLink
Uri

フィードの URI。

このコンストラクターの呼び出し方法を次の例に示します。

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

指定したタイトル、説明、URI、および SyndicationFeed オブジェクトのコレクションを使用して、SyndicationItem クラスの新しいインスタンスを初期化します。

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

パラメーター

title
String

フィードのタイトル。

description
String

フィードの説明。

feedAlternateLink
Uri

フィードの URI。

items
IEnumerable<SyndicationItem>

SyndicationItem オブジェクトのコレクション。

このコンストラクターの呼び出し方法を次の例に示します。

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 クラスの新しいインスタンスを作成します。

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)

パラメーター

title
String

配信フィードのタイトル。

description
String

配信フィードの説明。

feedAlternateLink
Uri

配信フィードの代替 URI。

id
String

配信フィードの ID。

lastUpdatedTime
DateTimeOffset

配信フィードが最後に更新された時刻を含む DateTimeOffset

このコンストラクターを呼び出す方法を次のコードに示します。

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 クラスの新しいインスタンスを作成します。

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

パラメーター

title
String

配信フィードのタイトル。

description
String

配信フィードの説明。

feedAlternateLink
Uri

配信フィードの代替 URI。

id
String

配信フィードの ID。

lastUpdatedTime
DateTimeOffset

配信フィードが最後に更新された時刻を含む DateTimeOffset

items
IEnumerable<SyndicationItem>

SyndicationItem オブジェクトのコレクション。

このコンストラクターを呼び出す方法を次のコードに示します。

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)

適用対象