Share via


SyndicationPerson Class

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Represents an author or contributor of syndication content.

Inheritance Hierarchy

System.Object
  System.ServiceModel.Syndication.SyndicationPerson

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

Syntax

'Declaration
Public Class SyndicationPerson
public class SyndicationPerson

The SyndicationPerson type exposes the following members.

Constructors

  Name Description
Public method SyndicationPerson() Initializes a new SyndicationPerson instance.
Public method SyndicationPerson(String) Initializes a new SyndicationPerson instance with the specified e-mail address.
Protected method SyndicationPerson(SyndicationPerson) Initializes a new instance of the SyndicationPerson class with the specified instance.
Public method SyndicationPerson(String, String, String) Initializes a new SyndicationPerson instance with the specified e-mail address, name, and Uniform Resource Identifier (URI).

Top

Properties

  Name Description
Public property AttributeExtensions Gets the attribute extensions for the SyndicationPerson.
Public property ElementExtensions Gets the element extensions for the SyndicationPerson.
Public property Email Gets or sets the e-mail address of the SyndicationPerson.
Public property Name Gets or sets the name of the SyndicationPerson.
Public property Uri Gets or sets the URI of the SyndicationPerson.

Top

Methods

  Name Description
Public method Clone Creates a copy of the existing SyndicationPerson instance.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Protected method TryParseAttribute Attempts to parse an attribute extension.
Protected method TryParseElement Attempts to parse an element extension.
Protected method WriteAttributeExtensions Writes the attribute extensions to the specified XmlWriter using the specified syndication version.
Protected method WriteElementExtensions Writes the element extensions to the specified XmlWriter using the specified syndication version.

Top

Remarks

SyndicationPerson objects can be added to the authors and contributors collections on SyndicationFeed and SyndicationItem objects.

When serialized to Atom 1.0, the SyndicationPerson is written out as an <author> or <contributor> element.

When serialized to RSS 2.0, a SyndicationPerson instance is written out as a <managingEditor>, <a10:author>, or <a10:contributor> element. How a SyndicationPerson is serialized depends on the number of SyndicationPerson objects added to a SyndicationFeed or SyndicationItem, which collection the SyndicationPerson instances are added to, and the value of the SerializeExtensionAsAtom parameter to the Rss20ItemFormatter(SyndicationItem, Boolean) constructor. If only one SyndicationPerson is added to the Authors (or Authors) collection, the SyndicationPerson is serialized to a <managingEditor> element. If more than one SyndicationPerson is added to the Authors (or Authors) collection and SerializeExtensionsAsAtom is set to true, all of the SyndicationPerson objects are serialized to <a10:author> elements. If SerializeExtensionsAsAtom is set to false, the SyndicationPerson instances are not serialized. Any SyndicationPerson instances added to the Contributors (or Contributors) collection are serialized only if SerializeExtensionsAsAtom is set to true, in which case they are serialized to <a10:contributor> elements.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.