TextSyndicationContent Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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);
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)
Parameters
- source
- TextSyndicationContent
The TextSyndicationContent instance.
Applies to
TextSyndicationContent(String)
- Source:
- TextSyndicationContent.cs
- Source:
- TextSyndicationContent.cs
- Source:
- TextSyndicationContent.cs
- Source:
- TextSyndicationContent.cs
Initializes a new instance of the TextSyndicationContent with the specified text.
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)
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");
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>
Applies to
TextSyndicationContent(String, TextSyndicationContentKind)
- Source:
- TextSyndicationContent.cs
- Source:
- TextSyndicationContent.cs
- Source:
- TextSyndicationContent.cs
- Source:
- TextSyndicationContent.cs
Initializes a new instance of the TextSyndicationContent with the specified text and 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)
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);
Dim textContent2 As TextSyndicationContent = New TextSyndicationContent("Some text content", TextSyndicationContentKind.Plaintext)
Remarks
The TextSyndicationContentKind parameter may be set to one of the following values: