TextSyndicationContent Class

TextSyndicationContent Class

 

Represents any SyndicationItem content intended to be displayed to an end user.

Namespace:   System.ServiceModel.Syndication
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

System.Object
  System.ServiceModel.Syndication.SyndicationContent
    System.ServiceModel.Syndication.TextSyndicationContent

public class TextSyndicationContent : SyndicationContent

NameDescription
System_CAPS_pubmethodTextSyndicationContent(String)

Initializes a new instance of the TextSyndicationContent with the specified text.

System_CAPS_pubmethodTextSyndicationContent(String, TextSyndicationContentKind)

Initializes a new instance of the TextSyndicationContent with the specified text and TextSyndicationContentKind.

System_CAPS_protmethodTextSyndicationContent(TextSyndicationContent)

Initializes a new instance of the TextSyndicationContent with the specified TextSyndicationContent instance.

NameDescription
System_CAPS_pubpropertyAttributeExtensions

Gets the attribute extensions for this content.(Inherited from SyndicationContent.)

System_CAPS_pubpropertyText

Gets the text of the TextSyndicationContent.

System_CAPS_pubpropertyType

Gets the content type of the TextSyndicationContent.(Overrides SyndicationContent.Type.)

NameDescription
System_CAPS_pubmethodClone()

Creates a copy of the existing SyndicationContent instance.(Overrides SyndicationContent.Clone().)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_protmethodWriteContentsTo(XmlWriter)

Writes the contents of the TextSyndicationContent to the specified XmlWriter.(Overrides SyndicationContent.WriteContentsTo(XmlWriter).)

System_CAPS_pubmethodWriteTo(XmlWriter, String, String)

Writes the contents of this object to the specified XmlWriter within the specified element and element namespace.(Inherited from SyndicationContent.)

Text content is HTML (with escaped markup), XHTML (valid XML, and is not escaped), or plain text.

The following example demonstrates how to use the TextSyndicationContent class.

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);

.NET Framework
Available since 3.5
Silverlight
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft