TextSyndicationContent 클래스

정의

최종 사용자에게 표시될 SyndicationItem 콘텐츠를 나타냅니다.

public ref class TextSyndicationContent : System::ServiceModel::Syndication::SyndicationContent
public class TextSyndicationContent : System.ServiceModel.Syndication.SyndicationContent
type TextSyndicationContent = class
    inherit SyndicationContent
Public Class TextSyndicationContent
Inherits SyndicationContent
상속
TextSyndicationContent

예제

다음 예제에서는 클래스를 사용하는 방법을 보여 줍니다 TextSyndicationContent .

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

feed.Copyright = new TextSyndicationContent("Copyright 2007");
feed.Description = new TextSyndicationContent("This is a sample feed");

TextSyndicationContent textContent = new TextSyndicationContent("Some text content");
SyndicationItem item = new SyndicationItem("Item Title", textContent, new Uri("http://server/items"), "ItemID", DateTime.Now);
Dim feed As SyndicationFeed = New SyndicationFeed("Feed Title", "Feed Description", New Uri("http://Feed/Alternate/Link"), "FeedID", DateTime.Now)

feed.Copyright = New TextSyndicationContent("Copyright 2007")
feed.Description = New TextSyndicationContent("This is a sample feed")

Dim textContent As TextSyndicationContent = New TextSyndicationContent("Some text content")
Dim item As SyndicationItem = New SyndicationItem("Item Title", textContent, New Uri("http://server/items"), "ItemID", DateTime.Now)

설명

텍스트 콘텐츠는 HTML(이스케이프된 태그 포함), XHTML(유효한 XML 및 이스케이프되지 않음) 또는 일반 텍스트입니다.

생성자

TextSyndicationContent(String)

지정된 텍스트를 사용하여 TextSyndicationContent 의 새 인스턴스를 초기화합니다.

TextSyndicationContent(String, TextSyndicationContentKind)

지정된 텍스트 및 TextSyndicationContent 를 사용하여 TextSyndicationContentKind의 새 인스턴스를 초기화합니다.

TextSyndicationContent(TextSyndicationContent)

지정된 TextSyndicationContent 인스턴스를 사용하여 TextSyndicationContent의 새 인스턴스를 초기화합니다.

속성

AttributeExtensions

이 콘텐츠의 특성 확장을 가져옵니다.

(다음에서 상속됨 SyndicationContent)
Text

TextSyndicationContent의 텍스트를 가져옵니다.

Type

TextSyndicationContent의 콘텐츠 형식을 가져옵니다.

메서드

Clone()

기존 SyndicationContent 인스턴스의 복사본을 만듭니다.

Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)
WriteContentsTo(XmlWriter)

TextSyndicationContent 의 콘텐츠를 지정된 XmlWriter에 씁니다.

WriteTo(XmlWriter, String, String)

이 개체의 내용을 지정된 요소 및 요소 네임스페이스 내부의 지정된 XmlWriter 에 씁니다.

(다음에서 상속됨 SyndicationContent)

적용 대상