SyndicationItem.Clone 方法

定义

创建 SyndicationItem 实例的副本。

public:
 virtual System::ServiceModel::Syndication::SyndicationItem ^ Clone();
public virtual System.ServiceModel.Syndication.SyndicationItem Clone ();
abstract member Clone : unit -> System.ServiceModel.Syndication.SyndicationItem
override this.Clone : unit -> System.ServiceModel.Syndication.SyndicationItem
Public Overridable Function Clone () As SyndicationItem

返回

一个 SyndicationItem 实例。

示例

下面的代码演示如何克隆 SyndicationItem 类的实例。

SyndicationItem item = new SyndicationItem("Item Title", "Item Content", new Uri("http://Item/Alternate/Link"), "itemID", DateTimeOffset.Now);
SyndicationItem clone = item.Clone();
Dim item As New SyndicationItem("Item Title", "Item Content", New Uri("http:' Item/Alternate/Link"), "itemID", DateTimeOffset.Now)
Dim clone As SyndicationItem = item.Clone()

适用于