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)

적용 대상