TextSyndicationContent Konstruktoren

Definition

Initialisiert eine neue instance von TextSyndicationContent.

Überlädt

Name Beschreibung
TextSyndicationContent(TextSyndicationContent)

Initialisiert eine neue Instanz der TextSyndicationContent mit der angegebenen TextSyndicationContent Instanz.

TextSyndicationContent(String)

Initialisiert eine neue Instanz des TextSyndicationContent mit dem angegebenen Text angegebenen Texts.

TextSyndicationContent(String, TextSyndicationContentKind)

Initialisiert eine neue Instanz des TextSyndicationContent mit dem angegebenen Text und TextSyndicationContentKind.

TextSyndicationContent(TextSyndicationContent)

Quelle:
TextSyndicationContent.cs
Quelle:
TextSyndicationContent.cs
Quelle:
TextSyndicationContent.cs
Quelle:
TextSyndicationContent.cs

Initialisiert eine neue Instanz der TextSyndicationContent mit der angegebenen TextSyndicationContent Instanz.

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)

Parameter

Gilt für:

TextSyndicationContent(String)

Quelle:
TextSyndicationContent.cs
Quelle:
TextSyndicationContent.cs
Quelle:
TextSyndicationContent.cs
Quelle:
TextSyndicationContent.cs

Initialisiert eine neue Instanz des TextSyndicationContent mit dem angegebenen Text angegebenen Texts.

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)

Parameter

text
String

Der Text des Inhalts.

Beispiele

Im folgenden Beispiel wird veranschaulicht, wie dieser Konstruktor aufgerufen wird.

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>

Gilt für:

TextSyndicationContent(String, TextSyndicationContentKind)

Quelle:
TextSyndicationContent.cs
Quelle:
TextSyndicationContent.cs
Quelle:
TextSyndicationContent.cs
Quelle:
TextSyndicationContent.cs

Initialisiert eine neue Instanz des TextSyndicationContent mit dem angegebenen Text und 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)

Parameter

text
String

Der Text des Inhalts.

textKind
TextSyndicationContentKind

Der TextSyndicationContentKind Inhalt wird beschrieben.

Beispiele

Im folgenden Beispiel wird veranschaulicht, wie dieser Konstruktor aufgerufen wird.

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

Hinweise

Der TextSyndicationContentKind Parameter kann auf einen der folgenden Werte festgelegt werden:

Gilt für: