Aracılığıyla paylaş


TextSyndicationContent Oluşturucular

Tanım

Yeni bir TextSyndicationContent örneğini başlatır.

Aşırı Yüklemeler

TextSyndicationContent(TextSyndicationContent)

Belirtilen TextSyndicationContent örnekle öğesinin TextSyndicationContent yeni bir örneğini başlatır.

TextSyndicationContent(String)

Belirtilen metinle öğesinin TextSyndicationContent yeni bir örneğini başlatır.

TextSyndicationContent(String, TextSyndicationContentKind)

belirtilen metin ve TextSyndicationContentKindile yeni bir örneğini TextSyndicationContent başlatır.

TextSyndicationContent(TextSyndicationContent)

Kaynak:
TextSyndicationContent.cs
Kaynak:
TextSyndicationContent.cs
Kaynak:
TextSyndicationContent.cs
Kaynak:
TextSyndicationContent.cs

Belirtilen TextSyndicationContent örnekle öğesinin TextSyndicationContent yeni bir örneğini başlatır.

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)

Parametreler

Şunlara uygulanır

TextSyndicationContent(String)

Kaynak:
TextSyndicationContent.cs
Kaynak:
TextSyndicationContent.cs
Kaynak:
TextSyndicationContent.cs
Kaynak:
TextSyndicationContent.cs

Belirtilen metinle öğesinin TextSyndicationContent yeni bir örneğini başlatır.

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)

Parametreler

text
String

İçeriğin metni.

Örnekler

Aşağıdaki örnek, bu oluşturucunun nasıl çağrılduğunu gösterir.

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>

Şunlara uygulanır

TextSyndicationContent(String, TextSyndicationContentKind)

Kaynak:
TextSyndicationContent.cs
Kaynak:
TextSyndicationContent.cs
Kaynak:
TextSyndicationContent.cs
Kaynak:
TextSyndicationContent.cs

belirtilen metin ve TextSyndicationContentKindile yeni bir örneğini TextSyndicationContent başlatır.

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)

Parametreler

text
String

İçeriğin metni.

textKind
TextSyndicationContentKind

TextSyndicationContentKind İçeriği açıklayan.

Örnekler

Aşağıdaki örnek, bu oluşturucunun nasıl çağrılduğunu gösterir.

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

Açıklamalar

TextSyndicationContentKind parametresi aşağıdaki değerlerden birine ayarlanabilir:

Şunlara uygulanır