.NET Framework クラス ライブラリ
TextSyndicationContent クラス

更新 : 2007 年 11 月

エンド ユーザーに表示するためのすべての SyndicationItem コンテンツを表します。

名前空間 :  System.ServiceModel.Syndication
アセンブリ :  System.ServiceModel.Web (System.ServiceModel.Web.dll 内)
構文

Visual Basic (宣言)
Public Class TextSyndicationContent _
    Inherits SyndicationContent
Visual Basic (使用法)
Dim instance As TextSyndicationContent
C#
public class TextSyndicationContent : SyndicationContent
Visual C++
public ref class TextSyndicationContent : public SyndicationContent
J#
public class TextSyndicationContent extends SyndicationContent
JScript
public class TextSyndicationContent extends SyndicationContent
解説

テキスト コンテンツは、HTML (エスケープされたマークアップを伴う)、XHTML (有効な XML でエスケープされない)、またはプレーンテキストです。


次の例は、TextSyndicationContent クラスの使用法を示しています。

Visual Basic
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)
C#
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);
継承階層

System..::.Object
  System.ServiceModel.Syndication..::.SyndicationContent
    System.ServiceModel.Syndication..::.TextSyndicationContent
スレッド セーフ

この型のすべてのパブリック static (Visual Basic では Shared) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォーム

Windows Vista, Windows XP SP2, Windows Server 2003

.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。
バージョン情報

.NET Framework

サポート対象 : 3.5
参照

参照

タグ :


Page view tracker