Represents an author or contributor of syndication content.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Thetype exposes the following members.
|SyndicationPerson()||Initializes a new instance.|
|SyndicationPerson(String)||Initializes a new instance with the specified e-mail address.|
|SyndicationPerson(SyndicationPerson)||Initializes a new instance of the class with the specified instance.|
|SyndicationPerson(String, String, String)||Initializes a new instance with the specified e-mail address, name, and Uniform Resource Identifier (URI).|
|Clone||Creates a copy of the existing instance.|
|Equals(Object)||Determines whether the specified object is equal to the current object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as the default hash function. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
|TryParseAttribute||Attempts to parse an attribute extension.|
|TryParseElement||Attempts to parse an element extension.|
|WriteAttributeExtensions||Writes the attribute extensions to the specified XmlWriter using the specified syndication version.|
|WriteElementExtensions||Writes the element extensions to the specified XmlWriter using the specified syndication version.|
When serialized to Atom 1.0, the is written out as an <author> or <contributor> element.
When serialized to RSS 2.0, a instance is written out as a <managingEditor>, <a10:author>, or <a10:contributor> element. How a is serialized depends on the number of objects added to a SyndicationFeed or SyndicationItem, which collection the instances are added to, and the value of the SerializeExtensionAsAtom parameter to the Rss20ItemFormatter(SyndicationItem, Boolean) constructor. If only one is added to the Authors (or Authors) collection, the is serialized to a <managingEditor> element. If more than one is added to the Authors (or Authors) collection and SerializeExtensionsAsAtom is set to true, all of the objects are serialized to <a10:author> elements. If SerializeExtensionsAsAtom is set to false, the instances is not serialized. Any instances added to the Contributors (or Contributors) collection are only serialized if SerializeExtensionsAsAtom is set to true, in which case they are serialized to <a10:contributor> elements.
The following code shows how to add a to the authors collection of a SyndicationFeed instance.
The following XML shows how a is serialized to Atom 1.0.
The following XML shows how a is serialized to RSS 2.0.
<a10:author> <a10:name>Lene Aalling</a10:name> <a10:uri>http://Lene/Aalling</a10:uri> <a10:email>Lene.Aalling@contoso.com</a10:email> </a10:author> <a10:contributor> <a10:name>Jesper Aaberg</a10:name> <a10:uri>http://Jesper/Aaberg</a10:uri> <a10:email>Jesper.Aaberg@contoso.com</a10:email> </a10:contributor>
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.