Partilhar via


TextSyndicationContent Construtores

Definição

Inicializa uma nova instância do TextSyndicationContent.

Sobrecargas

TextSyndicationContent(TextSyndicationContent)

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

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.

protected:
 TextSyndicationContent(System::ServiceModel::Syndication::TextSyndicationContent ^ source);
protected TextSyndicationContent (System.ServiceModel.Syndication.TextSyndicationContent source);
new System.ServiceModel.Syndication.TextSyndicationContent : System.ServiceModel.Syndication.TextSyndicationContent -> System.ServiceModel.Syndication.TextSyndicationContent
Protected Sub New (source As TextSyndicationContent)

Parâmetros

Aplica-se a

TextSyndicationContent(String)

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

public:
 TextSyndicationContent(System::String ^ text);
public TextSyndicationContent (string text);
new System.ServiceModel.Syndication.TextSyndicationContent : string -> System.ServiceModel.Syndication.TextSyndicationContent
Public Sub New (text As String)

Parâmetros

text
String

O texto do conteúdo.

Exemplos

O exemplo a seguir demonstra como chamar esse construtor.

TextSyndicationContent textContent = new TextSyndicationContent("Some text content");
Dim textContent As TextSyndicationContent = New TextSyndicationContent("Some text content")
<a10:author>
  <a10:name>Lene Aalling</a10:name>
  <a10:uri>http://Lene/Aalling</a10:uri>
  <a10:email>lene@company.com</a10:email>
</a10:author>
  <a10:contributor>
  <a10:name>Jesper Aaberg</a10:name>
  <a10:uri>http://Jesper/Aaberg</a10:uri>
  <a10:email>jesper@company.com</a10:email>
</a10:contributor>

Aplica-se a

TextSyndicationContent(String, TextSyndicationContentKind)

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

public:
 TextSyndicationContent(System::String ^ text, System::ServiceModel::Syndication::TextSyndicationContentKind textKind);
public TextSyndicationContent (string text, System.ServiceModel.Syndication.TextSyndicationContentKind textKind);
new System.ServiceModel.Syndication.TextSyndicationContent : string * System.ServiceModel.Syndication.TextSyndicationContentKind -> System.ServiceModel.Syndication.TextSyndicationContent
Public Sub New (text As String, textKind As TextSyndicationContentKind)

Parâmetros

text
String

O texto do conteúdo.

textKind
TextSyndicationContentKind

O TextSyndicationContentKind que descreve o conteúdo.

Exemplos

O exemplo a seguir demonstra como chamar esse construtor.

TextSyndicationContent textContent2 = new TextSyndicationContent("Some text content", TextSyndicationContentKind.Plaintext);
Dim textContent2 As TextSyndicationContent = New TextSyndicationContent("Some text content", TextSyndicationContentKind.Plaintext)

Comentários

O TextSyndicationContentKind parâmetro pode ser definido como um dos seguintes valores:

Aplica-se a