更新 : 2007 年 11 月
名前空間 :
System.ServiceModel.Syndication
アセンブリ :
System.ServiceModel.Web (System.ServiceModel.Web.dll 内)
Public Class TextSyndicationContent _
Inherits SyndicationContent
Dim instance As TextSyndicationContent
public class TextSyndicationContent : SyndicationContent
public ref class TextSyndicationContent : public SyndicationContent
public class TextSyndicationContent extends SyndicationContent
public class TextSyndicationContent extends SyndicationContent
テキスト コンテンツは、HTML (エスケープされたマークアップを伴う)、XHTML (有効な XML でエスケープされない)、またはプレーンテキストです。
次の例は、TextSyndicationContent クラスの使用法を示しています。
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)
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
参照