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:
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기