TextSyndicationContent 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 TextSyndicationContent 的新实例。
重载
TextSyndicationContent(TextSyndicationContent)
- Source:
- TextSyndicationContent.cs
- Source:
- TextSyndicationContent.cs
- Source:
- TextSyndicationContent.cs
- Source:
- TextSyndicationContent.cs
使用指定的 TextSyndicationContent 实例初始化 TextSyndicationContent 的新实例。
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)
参数
- source
- TextSyndicationContent
适用于
TextSyndicationContent(String)
- Source:
- TextSyndicationContent.cs
- Source:
- TextSyndicationContent.cs
- Source:
- TextSyndicationContent.cs
- Source:
- TextSyndicationContent.cs
使用指定的文本初始化 TextSyndicationContent 的新实例。
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)
参数
- text
- String
内容的文本。
示例
下面的示例演示如何调用此构造函数。
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>
适用于
TextSyndicationContent(String, TextSyndicationContentKind)
- Source:
- TextSyndicationContent.cs
- Source:
- TextSyndicationContent.cs
- Source:
- TextSyndicationContent.cs
- Source:
- TextSyndicationContent.cs
使用指定的文本和 TextSyndicationContent 初始化 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)
参数
- text
- String
内容的文本。
- textKind
- TextSyndicationContentKind
描述内容的 TextSyndicationContentKind。
示例
下面的示例演示如何调用此构造函数。
TextSyndicationContent textContent2 = new TextSyndicationContent("Some text content", TextSyndicationContentKind.Plaintext);
Dim textContent2 As TextSyndicationContent = New TextSyndicationContent("Some text content", TextSyndicationContentKind.Plaintext)
注解
TextSyndicationContentKind 参数可设置为下列值之一: