SyndicationFeed.ImageUrl 속성

정의

피드의 이미지 URL을 가져오거나 설정합니다.

public:
 property Uri ^ ImageUrl { Uri ^ get(); void set(Uri ^ value); };
public Uri ImageUrl { get; set; }
member this.ImageUrl : Uri with get, set
Public Property ImageUrl As Uri

속성 값

Uri

피드의 이미지 URL입니다.

예제

다음 코드에서는 ImageUrl 인스턴스에 SyndicationFeed를 설정하는 방법을 보여 줍니다.

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

다음 XML에서는 ImageUrl 속성이 Atom 1.0으로 serialize되는 방법을 보여 줍니다.

<logo>http://contoso/image.jpg</logo>

다음 XML에서는 ImageUrl 속성이 RSS 2.0으로 serialize되는 방법을 보여 줍니다.

<image>
  <url>http://contoso/image.jpg</url>
  <title>Feed Title</title>
  <link>http://feed/Alternate/Link</link>
</image>

설명

Atom 1.0으로 직렬화되면 속성이 ImageUrl 요소에 <logo> 기록됩니다.

RSS 2.0으로 직렬화되면 속성이 ImageUrl 요소에 <image> 기록됩니다.

적용 대상