SyndicationFeed.Generator SyndicationFeed.Generator SyndicationFeed.Generator SyndicationFeed.Generator Property

Definition

Ermittelt und definiert den Erzeuger des Feed. Gets and sets the generator of the feed.

public:
 property System::String ^ Generator { System::String ^ get(); void set(System::String ^ value); };
public string Generator { get; set; }
member this.Generator : string with get, set
Public Property Generator As String

Property Value

Der Name des Tools, das den Feed generiert hat. The name of the tool that generated the feed.

Examples

Im folgenden Code wird gezeigt, wie die Generator eines SyndicationFeed festgelegt wird.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";
Dim feed As 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>

Der folgende XML-Code zeigt, wie die Eigenschaft Generator in Atom 1.0 und RSS 2.0 serialisiert wird.The following XML shows how the Generator property is serialized to Atom 1.0 and RSS 2.0.

<generator>Sample Code</generator>

Remarks

Bei der Serialisierung zu Atom 1.0 und RSS 2.0 die Generator wird geschrieben, um eine <generator> Element.When serialized to Atom 1.0 and RSS 2.0, the Generator is written to a <generator> element.

Applies to