TextSyndicationContent Construtores

Definição

Inicializa uma nova instância do TextSyndicationContent.Initializes a new instance of the TextSyndicationContent.

Sobrecargas

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.

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.

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.Initializes a new instance of the TextSyndicationContent with the specified text.

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.The text of the content.

Exemplos

O exemplo a seguir demonstra como chamar esse construtor.The following example demonstrates how to call this constructor.

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.Initializes a new instance of the TextSyndicationContent with the specified text and 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.The text of the content.

textKind
TextSyndicationContentKind

O TextSyndicationContentKind que descreve o conteúdo.The TextSyndicationContentKind that describes the content.

Exemplos

O exemplo a seguir demonstra como chamar esse construtor.The following example demonstrates how to call this constructor.

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:The TextSyndicationContentKind parameter may be set to one of the following values:

Aplica-se a