DataWeb
Search Results for

    Show / Hide Table of Contents

    Class SiteMap

    Represents the structure of a site map according to the sitemaps.org protocol.

    Inheritance
    object
    SiteMap
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: DataWeb.App
    Assembly: DataWeb.Core.dll
    Syntax
    public sealed class SiteMap
    Remarks

    When serialized, the site map respects the protocol limit of a maximum of 50,000 URLs per site map. If more URLs are needed, use multiple site maps with a site map index.

    Constructors

    SiteMap()

    Initializes a new instance of the SiteMap class.

    Declaration
    public SiteMap()

    Properties

    Indexes

    Gets or sets the list of site map indexes.

    Declaration
    public List<SiteMap.SiteMapIndex> Indexes { get; set; }
    Property Value
    Type Description
    List<SiteMap.SiteMapIndex>

    Urls

    Gets or sets the list of site map URLs.

    Declaration
    public List<SiteMap.SiteMapUrl> Urls { get; set; }
    Property Value
    Type Description
    List<SiteMap.SiteMapUrl>

    Methods

    Serialize()

    Serializes the site map into an XML string according to the sitemaps.org protocol.

    Declaration
    public string Serialize()
    Returns
    Type Description
    string

    The serialized XML string representation of the site map.

    Remarks

    If Indexes is not empty, generates a site map index XML. If Urls is not empty, generates a URL set XML.

    The serialization respects the protocol constraint of a maximum of DataWeb.App.SiteMap.MaxUrlsPerSiteMap URLs. If the URL count exceeds this limit, the serialization will be truncated at 50,000 URLs. For larger collections, use multiple site maps with a site map index.

    In this article
    Back to top Generated by DocFX