TextSyndicationContent Classe

Definição

Representa qualquer conteúdo SyndicationItem que se destina a ser exibido para o usuário final.

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.

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 é escapado) ou texto sem formatação.

Construtores

TextSyndicationContent(String)

Inicializa uma nova instância do TextSyndicationContent com o texto especificado.

TextSyndicationContent(String, TextSyndicationContentKind)

Inicializa uma nova instância do TextSyndicationContent com o texto especificado e TextSyndicationContentKind.

TextSyndicationContent(TextSyndicationContent)

Inicializa uma nova instância do TextSyndicationContent com a instância TextSyndicationContent especificada.

Propriedades

AttributeExtensions

Obtém as extensões de atributo para este conteúdo.

(Herdado de SyndicationContent)
Text

Obtém o texto do TextSyndicationContent.

Type

Obtém o tipo de conteúdo do TextSyndicationContent.

Métodos

Clone()

Cria uma cópia da instância de SyndicationContent existente.

Equals(Object)

Determina se o objeto especificado é igual ao objeto atual.

(Herdado de Object)
GetHashCode()

Serve como a função de hash padrão.

(Herdado de Object)
GetType()

Obtém o Type da instância atual.

(Herdado de Object)
MemberwiseClone()

Cria uma cópia superficial do Object atual.

(Herdado de Object)
ToString()

Retorna uma cadeia de caracteres que representa o objeto atual.

(Herdado de Object)
WriteContentsTo(XmlWriter)

Grava o conteúdo do TextSyndicationContent no XmlWriter especificado.

WriteTo(XmlWriter, String, String)

Grava o conteúdo deste objeto no XmlWriter especificado dentro do elemento e do namespace de elemento especificados.

(Herdado de SyndicationContent)

Aplica-se a