共用方式為


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()

適用於