SyndicationFeed.Generator Property


Gets and sets the generator of the feed.

Namespace:   System.ServiceModel.Syndication
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public string Generator { get; set; }

Property Value

Type: System.String

The name of the tool that generated the feed.

When serialized to Atom 1.0 and RSS 2.0, the Generator is written to a <generator> element.

The following code shows how to set the Generator of a SyndicationFeed.

SyndicationFeed feed = new SyndicationFeed("Feed Title", "Feed Description", new Uri("http://Feed/Alternate/Link"), "FeedID", DateTime.Now);
feed.Generator = "Generator Name or Description";
<title type="text">Feed Title</title>

The following XML shows how the Generator property is serialized to Atom 1.0 and RSS 2.0.

<generator>Sample Code</generator>

.NET Framework
Available since 3.5
Available since 2.0
Return to top