Idioma

TextSyndicationContent Classe

Definição

Representa qualquer SyndicationItem conteúdo destinado a ser exibido para um 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 do texto é HTML (com marcação de escape), XHTML (XML válido e não é escapado) ou texto sem formatação.

Construtores

Nome Descrição
TextSyndicationContent(String, TextSyndicationContentKind)

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

TextSyndicationContent(String)

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

TextSyndicationContent(TextSyndicationContent)

Inicializa uma nova instância da TextSyndicationContent instância especificada TextSyndicationContent .

Propriedades

Nome Descrição
AttributeExtensions

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

(Herdado de SyndicationContent)
Text

Obtém o texto do TextSyndicationContent.

Type

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

Métodos

Nome Descrição
Clone()

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

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 Objectatual.

(Herdado de Object)
ToString()

Retorna uma cadeia de caracteres que representa o objeto atual.

(Herdado de Object)
WriteContentsTo(XmlWriter)

Grava o conteúdo do TextSyndicationContentXmlWriter.

WriteTo(XmlWriter, String, String)

Grava o conteúdo desse objeto no namespace de elemento e elemento especificados XmlWriter .

(Herdado de SyndicationContent)

Aplica-se a