次の方法で共有


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

適用対象