TextSyndicationContent Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy TextSyndicationContent.

Przeciążenia

TextSyndicationContent(TextSyndicationContent)

Inicjuje nowe wystąpienie obiektu TextSyndicationContent z określonym TextSyndicationContent wystąpieniem.

TextSyndicationContent(String)

Inicjuje nowe wystąpienie obiektu TextSyndicationContent z określonym tekstem.

TextSyndicationContent(String, TextSyndicationContentKind)

Inicjuje TextSyndicationContent nowe wystąpienie obiektu za pomocą określonego tekstu i TextSyndicationContentKind.

TextSyndicationContent(TextSyndicationContent)

Źródło:
TextSyndicationContent.cs
Źródło:
TextSyndicationContent.cs
Źródło:
TextSyndicationContent.cs
Źródło:
TextSyndicationContent.cs

Inicjuje nowe wystąpienie obiektu TextSyndicationContent z określonym TextSyndicationContent wystąpieniem.

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

source
TextSyndicationContent

Wystąpienie elementu TextSyndicationContent.

Dotyczy

TextSyndicationContent(String)

Źródło:
TextSyndicationContent.cs
Źródło:
TextSyndicationContent.cs
Źródło:
TextSyndicationContent.cs
Źródło:
TextSyndicationContent.cs

Inicjuje nowe wystąpienie obiektu TextSyndicationContent z określonym tekstem.

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

Tekst zawartości.

Przykłady

W poniższym przykładzie pokazano, jak wywołać ten 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>

Dotyczy

TextSyndicationContent(String, TextSyndicationContentKind)

Źródło:
TextSyndicationContent.cs
Źródło:
TextSyndicationContent.cs
Źródło:
TextSyndicationContent.cs
Źródło:
TextSyndicationContent.cs

Inicjuje TextSyndicationContent nowe wystąpienie obiektu za pomocą określonego tekstu i 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

Tekst zawartości.

Przykłady

W poniższym przykładzie pokazano, jak wywołać ten konstruktor.

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

Uwagi

Parametr TextSyndicationContentKind może być ustawiony na jedną z następujących wartości:

Dotyczy