Breyta

Deila með


SyndicationFeed.Clone(Boolean) Method

Definition

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