Sdílet prostřednictvím


TextSyndicationContent Konstruktory

Definice

Inicializuje novou instanci TextSyndicationContent.

Přetížení

TextSyndicationContent(TextSyndicationContent)

Inicializuje novou instanci TextSyndicationContent se zadanou TextSyndicationContent instancí.

TextSyndicationContent(String)

Inicializuje novou instanci TextSyndicationContent se zadaným textem.

TextSyndicationContent(String, TextSyndicationContentKind)

Inicializuje novou instanci TextSyndicationContent se zadaným textem a TextSyndicationContentKind.

TextSyndicationContent(TextSyndicationContent)

Inicializuje novou instanci TextSyndicationContent se zadanou TextSyndicationContent instancí.

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)

Parametry

Platí pro

TextSyndicationContent(String)

Inicializuje novou instanci TextSyndicationContent se zadaným textem.

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)

Parametry

text
String

Text obsahu

Příklady

Následující příklad ukazuje, jak volat tento konstruktor.

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>

Platí pro

TextSyndicationContent(String, TextSyndicationContentKind)

Inicializuje novou instanci TextSyndicationContent se zadaným textem a 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)

Parametry

text
String

Text obsahu

Příklady

Následující příklad ukazuje, jak volat tento konstruktor.

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

Poznámky

Parametr TextSyndicationContentKind může být nastaven na jednu z následujících hodnot:

Platí pro