. Constructor

Namespace: MonoSoftware.MonoX.SiteMap
Assembly: MonoX (in MonoX.dll) Version: 5.1.40.5065 (5.1.40.5065)

Syntax

C#
public Url(
	Uri pageUrl,
	DateTime lastModified,
	ChangeFrequency changeFrequency,
	decimal priority
)
Visual Basic
Public Sub New ( 
	pageUrl As Uri,
	lastModified As DateTime,
	changeFrequency As ChangeFrequency,
	priority As Decimal
)
Visual C++
public:
Url(
	Uri^ pageUrl, 
	DateTime lastModified, 
	ChangeFrequency changeFrequency, 
	Decimal priority
)
F#
new : 
        pageUrl : Uri * 
        lastModified : DateTime * 
        changeFrequency : ChangeFrequency * 
        priority : decimal -> Url

Parameters

pageUrl
Type: System..::..Uri
URL of the page. This URL must begin with the protocol (such as http) and end with a trailing slash, if your web server requires it. This value must be less than 2048 characters.
lastModified
Type: System..::..DateTime
he date of last modification of the file. This date should be in W3C Datetime format. This format allows you to omit the time portion, if desired, and use YYYY-MM-DD.
changeFrequency
Type: MonoSoftware.MonoX.SiteMap..::..ChangeFrequency
How frequently the page is likely to change. This value provides general information to search engines and may not correlate exactly to how often they crawl the page. Valid values are:
* always
* hourly
* daily
* monthly
* yearly
* never
The value "always" should be used to describe documents that change each time they are accessed. The value "never" should be used to describe archived URLs. Please note that the value of this tag is considered a hint and not a command. Even though search engine crawlers consider this information when making decisions, they may crawl pages marked "hourly" less frequently than that, and they may crawl pages marked "yearly" more frequently than that. It is also likely that crawlers will periodically crawl pages marked "never" so that they can handle unexpected changes to those pages.
priority
Type: System..::..Decimal
The priority of this URL relative to other URLs on your site. Valid values range from 0.0 to 1.0. This value has no effect on your pages compared to pages on other sites, and only lets the search engines know which of your pages you deem most important so they can order the crawl of your pages in the way you would most like.
The default priority of a page is 0.5.
Please note that the priority you assign to a page has no influence on the position of your URLs in a search engine's result pages. Search engines use this information when selecting between URLs on the same site, so you can use this tag to increase the likelihood that your more important pages are present in a search index.
Also, please note that assigning a high priority to all of the URLs on your site will not help you. Since the priority is relative, it is only used to select between URLs on your site; the priority of your pages will not be compared to the priority of pages on other sites.

See Also