TextSyndicationContent Classe
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Representa qualquer SyndicationItem conteúdo destinado a ser exibido a um utilizador 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
Exemplos
O exemplo seguinte 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)
Observações
O conteúdo de texto é HTML (com marcação escapada), XHTML (XML válido, e não é escape) ou texto simples.
Construtores
| Name | Description |
|---|---|
| TextSyndicationContent(String, TextSyndicationContentKind) |
Inicializa uma nova instância do TextSyndicationContent com o texto especificado e TextSyndicationContentKind. |
| TextSyndicationContent(String) |
Inicializa uma nova instância do TextSyndicationContent com o texto especificado. |
| TextSyndicationContent(TextSyndicationContent) |
Inicializa uma nova instância do TextSyndicationContent com a instância especificada TextSyndicationContent . |
Propriedades
| Name | Description |
|---|---|
| AttributeExtensions |
Obtém as extensões de atributos 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
| Name | Description |
|---|---|
| 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 função de hash predefinida. (Herdado de Object) |
| GetType() |
Obtém o Type da instância atual. (Herdado de Object) |
| MemberwiseClone() |
Cria uma cópia superficial do atual Object. (Herdado de Object) |
| ToString() |
Devolve uma cadeia que representa o objeto atual. (Herdado de Object) |
| WriteContentsTo(XmlWriter) |
Escreve o conteúdo do TextSyndicationContent para o especificado XmlWriter. |
| WriteTo(XmlWriter, String, String) |
Escreve o conteúdo deste objeto no especificado XmlWriter dentro do elemento especificado e do espaço de nomes dos elementos. (Herdado de SyndicationContent) |