TextSyndicationContent Classe

Definição

Representa qualquer conteúdo SyndicationItem que se destina a ser exibido para o usuário final.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
Herança
TextSyndicationContent

Exemplos

O exemplo a seguir demonstra como usar a TextSyndicationContent classe.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)

Comentários

O conteúdo de texto é HTML (com marcação de escape), XHTML (XML válido e não tem escape) ou texto sem formatação.Text content is HTML (with escaped markup), XHTML (valid XML, and is not escaped), or plain text.

Construtores

TextSyndicationContent(String)

Inicializa uma nova instância do TextSyndicationContent com o texto especificado.Initializes a new instance of the TextSyndicationContent with the specified text.

TextSyndicationContent(String, TextSyndicationContentKind)

Inicializa uma nova instância do TextSyndicationContent com o texto especificado e TextSyndicationContentKind.Initializes a new instance of the TextSyndicationContent with the specified text and TextSyndicationContentKind.

TextSyndicationContent(TextSyndicationContent)

Inicializa uma nova instância do TextSyndicationContent com a instância TextSyndicationContent especificada.Initializes a new instance of the TextSyndicationContent with the specified TextSyndicationContent instance.

Propriedades

AttributeExtensions

Obtém as extensões de atributo para este conteúdo.Gets the attribute extensions for this content.

(Herdado de SyndicationContent)
Text

Obtém o texto do TextSyndicationContent.Gets the text of the TextSyndicationContent.

Type

Obtém o tipo de conteúdo do TextSyndicationContent.Gets the content type of the TextSyndicationContent.

Métodos

Clone()

Cria uma cópia da instância de SyndicationContent existente.Creates a copy of the existing SyndicationContent instance.

Equals(Object)

Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object.

(Herdado de Object)
GetHashCode()

Serve como a função de hash padrão.Serves as the default hash function.

(Herdado de Object)
GetType()

Obtém o Type da instância atual.Gets the Type of the current instance.

(Herdado de Object)
MemberwiseClone()

Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object.

(Herdado de Object)
ToString()

Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object.

(Herdado de Object)
WriteContentsTo(XmlWriter)

Grava o conteúdo do TextSyndicationContent no XmlWriter especificado.Writes the contents of the TextSyndicationContent to the specified XmlWriter.

WriteTo(XmlWriter, String, String)

Grava o conteúdo deste objeto no XmlWriter especificado dentro do elemento e do namespace de elemento especificados.Writes the contents of this object to the specified XmlWriter within the specified element and element namespace.

(Herdado de SyndicationContent)

Aplica-se a