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)

適用対象