ResourceCollection ResourceCollection ResourceCollection ResourceCollection ResourceCollection Class


Encapsulates one or more collections within a workspace.

public : sealed class ResourceCollection : IResourceCollection, ISyndicationNode
struct winrt::Windows::Web::AtomPub::ResourceCollection : IResourceCollection, ISyndicationNode
public sealed class ResourceCollection : IResourceCollection, ISyndicationNode
Public NotInheritable Class ResourceCollection Implements IResourceCollection, ISyndicationNode
// This class does not provide a public constructor.
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


Accepts Accepts Accepts Accepts Accepts

Gets or sets the collection of app:accept elements.

public : IVectorView<Platform::String> Accepts { get; }
IVectorView<winrt::hstring> Accepts();
public IReadOnlyList<string> Accepts { get; }
Public ReadOnly Property Accepts As IReadOnlyList<string>
var iReadOnlyList = resourceCollection.accepts;
IReadOnlyList<string> IReadOnlyList<string> IReadOnlyList<string>

The collection of accept elements.

AttributeExtensions AttributeExtensions AttributeExtensions AttributeExtensions AttributeExtensions

Gets the list of attributes of the element.

public : IVector<SyndicationAttribute> AttributeExtensions { get; }
IVector<SyndicationAttribute> AttributeExtensions();
public IList<SyndicationAttribute> AttributeExtensions { get; }
Public ReadOnly Property AttributeExtensions As IList<SyndicationAttribute>
var iList = resourceCollection.attributeExtensions;
IList<SyndicationAttribute> IList<SyndicationAttribute> IList<SyndicationAttribute>

The list of attributes.

BaseUri BaseUri BaseUri BaseUri BaseUri

Gets or sets the Uniform Resource Identifier (URI) for the element. This property represents the xml:base attribute on the element. It may be inherited from an ancestor element.

public : Uri BaseUri { get; set; }
Uri BaseUri(); void BaseUri(Uri baseuri);
public Uri BaseUri { get; set; }
Public ReadWrite Property BaseUri As Uri
var uri = resourceCollection.baseUri;
resourceCollection.baseUri = uri;
Uri Uri Uri

The Uniform Resource Identifier (URI) for the element.

Categories Categories Categories Categories Categories

Gets the collection of atom:category elements within the app:categories element.

public : IVectorView<SyndicationCategory> Categories { get; }
IVectorView<SyndicationCategory> Categories();
public IReadOnlyList<SyndicationCategory> Categories { get; }
Public ReadOnly Property Categories As IReadOnlyList<SyndicationCategory>
var iReadOnlyList = resourceCollection.categories;
IReadOnlyList<SyndicationCategory> IReadOnlyList<SyndicationCategory> IReadOnlyList<SyndicationCategory>

The collection of categories.

ElementExtensions ElementExtensions ElementExtensions ElementExtensions ElementExtensions

Gets the list of child elements within the element.

public : IVector<ISyndicationNode> ElementExtensions { get; }
IVector<ISyndicationNode> ElementExtensions();
public IList<ISyndicationNode> ElementExtensions { get; }
Public ReadOnly Property ElementExtensions As IList<ISyndicationNode>
var iList = resourceCollection.elementExtensions;
IList<ISyndicationNode> IList<ISyndicationNode> IList<ISyndicationNode>

The list of child elements.

Language Language Language Language Language

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.

public : Platform::String Language { get; set; }
winrt::hstring Language(); void Language(winrt::hstring language);
public string Language { get; set; }
Public ReadWrite Property Language As string
var string = resourceCollection.language;
resourceCollection.language = string;
string string string

The language of the element.

NodeName NodeName NodeName NodeName NodeName

Gets or sets the local name of the element. It must be valid according to XML 1.0.

public : Platform::String NodeName { get; set; }
winrt::hstring NodeName(); void NodeName(winrt::hstring nodename);
public string NodeName { get; set; }
Public ReadWrite Property NodeName As string
var string = resourceCollection.nodeName;
resourceCollection.nodeName = string;
string string string

The name of the element.

NodeNamespace NodeNamespace NodeNamespace NodeNamespace NodeNamespace

Gets or sets the namespace of the element.

public : Platform::String NodeNamespace { get; set; }
winrt::hstring NodeNamespace(); void NodeNamespace(winrt::hstring nodenamespace);
public string NodeNamespace { get; set; }
Public ReadWrite Property NodeNamespace As string
var string = resourceCollection.nodeNamespace;
resourceCollection.nodeNamespace = string;
string string string

The namespace name.

NodeValue NodeValue NodeValue NodeValue NodeValue

Gets or sets the text content of the element. If the element contains only child elements, this attribute is NULL.

public : Platform::String NodeValue { get; set; }
winrt::hstring NodeValue(); void NodeValue(winrt::hstring nodevalue);
public string NodeValue { get; set; }
Public ReadWrite Property NodeValue As string
var string = resourceCollection.nodeValue;
resourceCollection.nodeValue = string;
string string string

The node value.

Title Title Title Title Title

Gets the atom:title element under the app:collection element.

public : ISyndicationText Title { get; }
ISyndicationText Title();
public ISyndicationText Title { get; }
Public ReadOnly Property Title As ISyndicationText
var iSyndicationText = resourceCollection.title;
ISyndicationText ISyndicationText ISyndicationText

The collection of title elements.

Uri Uri Uri Uri Uri

Gets the Uniform Resource Identifier (URI) representing the href attribute of the app:collection element. This is the absolute Uniform Resource Identifier (URI) resolved against the xml:base attribute when it is present. If the href attribute is a relative Uniform Resource Identifier (URI) string and there is no xml:base attribute, this property will be Null.

public : Uri Uri { get; }
Uri Uri();
public Uri Uri { get; }
Public ReadOnly Property Uri As Uri
var uri = resourceCollection.uri;
Uri Uri Uri

The Uniform Resource Identifier (URI) of the resource collection.


GetXmlDocument(SyndicationFormat) GetXmlDocument(SyndicationFormat) GetXmlDocument(SyndicationFormat) GetXmlDocument(SyndicationFormat) GetXmlDocument(SyndicationFormat)

Generates the DOM object that represents this element, and all the attributes and child elements including foreign markups.

public : XmlDocument GetXmlDocument(SyndicationFormat format)
XmlDocument GetXmlDocument(SyndicationFormat format) const;
public XmlDocument GetXmlDocument(SyndicationFormat format)
Public Function GetXmlDocument(format As SyndicationFormat) As XmlDocument
var xmlDocument = resourceCollection.getXmlDocument(format);
SyndicationFormat SyndicationFormat SyndicationFormat

The format of the element. The only formats accepted by this method are Atom 1.0 and RSS 2.0.


The XML document.

See Also