TextSyndicationContent Constructors

Definition

Initializes a new instance of the TextSyndicationContent.

Overloads

TextSyndicationContent(TextSyndicationContent)

Initializes a new instance of the TextSyndicationContent with the specified TextSyndicationContent instance.

TextSyndicationContent(String)

Initializes a new instance of the TextSyndicationContent with the specified text.

TextSyndicationContent(String, TextSyndicationContentKind)

Initializes a new instance of the TextSyndicationContent with the specified text and TextSyndicationContentKind.

TextSyndicationContent(TextSyndicationContent)

Source:
TextSyndicationContent.cs
Source:
TextSyndicationContent.cs

Initializes a new instance of the TextSyndicationContent with the specified TextSyndicationContent instance.

protected TextSyndicationContent (System.ServiceModel.Syndication.TextSyndicationContent source);

Parameters

Applies to

.NET 9 (package-provided) og andre versioner
Produkt Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

TextSyndicationContent(String)

Source:
TextSyndicationContent.cs
Source:
TextSyndicationContent.cs

Initializes a new instance of the TextSyndicationContent with the specified text.

public TextSyndicationContent (string text);

Parameters

text
String

The text of the content.

Examples

The following example demonstrates how to call this constructor.

TextSyndicationContent textContent = 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>

Applies to

.NET 9 (package-provided) og andre versioner
Produkt Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

TextSyndicationContent(String, TextSyndicationContentKind)

Source:
TextSyndicationContent.cs
Source:
TextSyndicationContent.cs

Initializes a new instance of the TextSyndicationContent with the specified text and TextSyndicationContentKind.

public TextSyndicationContent (string text, System.ServiceModel.Syndication.TextSyndicationContentKind textKind);

Parameters

text
String

The text of the content.

textKind
TextSyndicationContentKind

The TextSyndicationContentKind that describes the content.

Examples

The following example demonstrates how to call this constructor.

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

Remarks

The TextSyndicationContentKind parameter may be set to one of the following values:

Applies to

.NET 9 (package-provided) og andre versioner
Produkt Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)