SyndicationItem.Clone Method
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.
Creates a copy of the SyndicationItem instance.
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
Returns
A SyndicationItem instance.
Examples
The following code shows how to clone an instance of the SyndicationItem class.
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()
Applies to
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.