SyndicationFeed.Clone(Boolean) 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 SyndicationFeed instance.
public:
virtual System::ServiceModel::Syndication::SyndicationFeed ^ Clone(bool cloneItems);
public virtual System.ServiceModel.Syndication.SyndicationFeed Clone (bool cloneItems);
abstract member Clone : bool -> System.ServiceModel.Syndication.SyndicationFeed
override this.Clone : bool -> System.ServiceModel.Syndication.SyndicationFeed
Public Overridable Function Clone (cloneItems As Boolean) As SyndicationFeed
Parameters
- cloneItems
- Boolean
A value that specifies whether the SyndicationItem objects are cloned.
Returns
A duplicate SyndicationFeed object.
Examples
The following code shows how to call this method.
SyndicationFeed feed = new SyndicationFeed();
SyndicationFeed clonedFeed = feed.Clone(true);
Dim feed As New SyndicationFeed()
Dim clonedFeed As SyndicationFeed = feed.Clone(True)
Remarks
If the cloneItems
parameter is true
, all items within the SyndicationFeed object are cloned; otherwise, the new SyndicationFeed instance's items collection contain references to the original SyndicationFeed instance's items.
Applies to
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin