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
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de l’année 2024, nous abandonnerons progressivement le mécanisme de retour d’information GitHub Issues pour le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultez :Soumettre et afficher des commentaires pour