TextSyndicationContent Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents any SyndicationItem content intended to be displayed to an end user.
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
- Inheritance
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);
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)
Text content is HTML (with escaped markup), XHTML (valid XML, and is not escaped), or plain text.
Text |
Initializes a new instance of the TextSyndicationContent with the specified text and TextSyndicationContentKind. |
Text |
Initializes a new instance of the TextSyndicationContent with the specified text. |
Text |
Initializes a new instance of the TextSyndicationContent with the specified TextSyndicationContent instance. |
Attribute |
Gets the attribute extensions for this content. (Inherited from SyndicationContent) |
Text |
Gets the text of the TextSyndicationContent. |
Type |
Gets the content type of the TextSyndicationContent. |
Clone() |
Creates a copy of the existing SyndicationContent instance. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
To |
Returns a string that represents the current object. (Inherited from Object) |
Write |
Writes the contents of the TextSyndicationContent to the specified XmlWriter. |
Write |
Writes the contents of this object to the specified XmlWriter within the specified element and element namespace. (Inherited from SyndicationContent) |
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
.NET feedback
.NET is an open source project. Select a link to provide feedback: