Represents an author or contributor of syndication content.
Syntax
var syndicationPerson = new Windows.Web.Syndication.SyndicationPerson(string); var syndicationPerson = new Windows.Web.Syndication.SyndicationPerson(string, string, uri); var syndicationPerson = new Windows.Web.Syndication.SyndicationPerson();
Attributes
- ActivatableAttribute(NTDDI_WIN8)
- ActivatableAttribute(Windows.Web.Syndication.ISyndicationPersonFactory, NTDDI_WIN8)
- DualApiPartitionAttribute()
- MarshalingBehaviorAttribute(Agile)
- ThreadingAttribute(Both)
- VersionAttribute(NTDDI_WIN8)
Members
The SyndicationPerson class has these types of members:
Constructors
The SyndicationPerson class has these constructors.
| Constructor | Description |
|---|---|
| SyndicationPerson() | Creates a SyndicationPerson object. |
| SyndicationPerson(String) | Creates a SyndicationPerson object with the specified Name property value. |
| SyndicationPerson(String, String, Uri) | Creates a SyndicationPerson object with the specified Name, Email, and Uri property values. |
Methods
The SyndicationPerson class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.
| Method | Description |
|---|---|
| GetXmlDocument | Generates the DOM object that represents this element, all the attributes and child elements including foreign markups. The only formats accepted by this method are Atom 1.0 and RSS 2.0. |
Properties
The SyndicationPerson class has these properties.
| Property | Access type | Description |
|---|---|---|
| Read-only | Gets the list of custom attributes of the element. | |
| Read/write | Gets or sets the base URI for the element. This property represents the xml:base attribute on the element. It may be inherited from an ancestor element. | |
| Read-only | Gets the list of child elements within the element. | |
| Read/write | Gets or sets the email address of the person. | |
| Read/write | Gets or sets the language of the element. This property represents the xml:lang attribute on the element. It may be inherited from an ancestor element. It must be valid according to XML 1.0. | |
| Read/write | Gets the name of the syndication person. | |
| Read/write | Gets or sets the local name of the element. | |
| Read/write | Gets or sets the namespace of the element. | |
| Read/write | Gets or sets the text content of the element. If the element contains only child elements, this property is NULL. | |
| Read/write | Gets or sets the Uniform Resource Identifier (URI) of the person. This property represents the atom:uri element. It is the absolute Uniform Resource Identifier (URI) resolved against the xml:base attribute, if it is present. If the href attribute is a relative Uniform Resource Identifier (URI) string and there is no xml:base attribute, this property is NULL because the relative Uniform Resource Identifier (URI) is not supported by the runtime Uniform Resource Identifier (URI) class. |
Remarks
The following table maps SyndicationPerson properties to RSS and Atom feed elements.
| SyndicationPerson | RSS | Atom |
|---|---|---|
| (node value) | ||
| Name | name | |
| Uri | uri |
Requirements
|
Minimum supported client | Windows 8 [Windows Store apps, desktop apps] |
|---|---|
|
Minimum supported server | Windows Server 2012 [Windows Store apps, desktop apps] |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 12/4/2012