C# Class FluentSitemap.Core.SitemapNode

Inheritance: ISitemapNode
Show file Open project: khalidabuhakmeh/FluentSitemap

Public Methods

Method Description
Set ( ) : ISitemapConfigurator

Returns you back the SiteMapConfigurator so you can continue adding nodes

Set ( ISitemapNode changes ) : ISitemapConfigurator

Allows you to set changes all at once by using a SiteMapConfigurator node

SitemapNode ( ) : System

Constructor

Will be disconnected from a SitemapConfigurator

SitemapNode ( ISitemapConfigurator sitemapConfigurator ) : System

Constructor

WithChangeFrequency ( ChangeFrequencyType changeFrequency ) : ISitemapNode

used as a hint for the crawlers to indicate how ofter the page is modified and how often it should be indexed.

WithLastModified ( System.DateTime lastModified ) : ISitemapNode

The date when this location was last modified Be advised that you do not have to modify this tag each time you modify the document. The search engines will get the dates of the documents once they crawl them.

WithLocation ( string location ) : ISitemapNode

The location of a node. Must start with http:// or https://

WithPriority ( double priority ) : ISitemapNode

The Priority value can vary from 0.0 to 1.0. Be advised that this indicates only your personal preferences for the way you would like to have your website indexed. The default value of a page that is not prioritized is 0.5. Any page with higher value will be crawled before the page with priority 0.5, and all pages with lower priority will be indexed after the page with 0.5 value. Since the priority is relative it is used only for your website and even if you set a high priority to all of your pages this does not mean that they will be indexed more often, because this value is not used to make comparison between different websites.

Method Details

Set() public method

Returns you back the SiteMapConfigurator so you can continue adding nodes
public Set ( ) : ISitemapConfigurator
return ISitemapConfigurator

Set() public method

Allows you to set changes all at once by using a SiteMapConfigurator node
public Set ( ISitemapNode changes ) : ISitemapConfigurator
changes ISitemapNode the changes to be mapped
return ISitemapConfigurator

SitemapNode() public method

Constructor
Will be disconnected from a SitemapConfigurator
public SitemapNode ( ) : System
return System

SitemapNode() public method

Constructor
public SitemapNode ( ISitemapConfigurator sitemapConfigurator ) : System
sitemapConfigurator ISitemapConfigurator the SitemapConfigurator the node is connected to
return System

WithChangeFrequency() public method

used as a hint for the crawlers to indicate how ofter the page is modified and how often it should be indexed.
public WithChangeFrequency ( ChangeFrequencyType changeFrequency ) : ISitemapNode
changeFrequency ChangeFrequencyType
return ISitemapNode

WithLastModified() public method

The date when this location was last modified Be advised that you do not have to modify this tag each time you modify the document. The search engines will get the dates of the documents once they crawl them.
public WithLastModified ( System.DateTime lastModified ) : ISitemapNode
lastModified System.DateTime
return ISitemapNode

WithLocation() public method

The location of a node. Must start with http:// or https://
public WithLocation ( string location ) : ISitemapNode
location string
return ISitemapNode

WithPriority() public method

The Priority value can vary from 0.0 to 1.0. Be advised that this indicates only your personal preferences for the way you would like to have your website indexed. The default value of a page that is not prioritized is 0.5. Any page with higher value will be crawled before the page with priority 0.5, and all pages with lower priority will be indexed after the page with 0.5 value. Since the priority is relative it is used only for your website and even if you set a high priority to all of your pages this does not mean that they will be indexed more often, because this value is not used to make comparison between different websites.
public WithPriority ( double priority ) : ISitemapNode
priority double
return ISitemapNode