Show / Hide Table of Contents

Class SitemapsResource

The "sitemaps" collection of methods.

Inheritance
object
SitemapsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.SearchConsole.v1
Assembly: Google.Apis.SearchConsole.v1.dll
Syntax
public class SitemapsResource

Constructors

SitemapsResource(IClientService)

Constructs a new resource.

Declaration
public SitemapsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Delete(string, string)

Deletes a sitemap from the Sitemaps report. Does not stop Google from crawling this sitemap or the URLs that were previously crawled in the deleted sitemap.

Declaration
public virtual SitemapsResource.DeleteRequest Delete(string siteUrl, string feedpath)
Parameters
Type Name Description
string siteUrl

The site's URL, including protocol. For example: http://www.example.com/.

string feedpath

The URL of the actual sitemap. For example: http://www.example.com/sitemap.xml.

Returns
Type Description
SitemapsResource.DeleteRequest

Get(string, string)

Retrieves information about a specific sitemap.

Declaration
public virtual SitemapsResource.GetRequest Get(string siteUrl, string feedpath)
Parameters
Type Name Description
string siteUrl

The site's URL, including protocol. For example: http://www.example.com/.

string feedpath

The URL of the actual sitemap. For example: http://www.example.com/sitemap.xml.

Returns
Type Description
SitemapsResource.GetRequest

List(string)

Lists the sitemaps-entries submitted for this site, or included in the sitemap index file (if sitemapIndex is specified in the request).

Declaration
public virtual SitemapsResource.ListRequest List(string siteUrl)
Parameters
Type Name Description
string siteUrl

The site's URL, including protocol. For example: http://www.example.com/.

Returns
Type Description
SitemapsResource.ListRequest

Submit(string, string)

Submits a sitemap for a site.

Declaration
public virtual SitemapsResource.SubmitRequest Submit(string siteUrl, string feedpath)
Parameters
Type Name Description
string siteUrl

The site's URL, including protocol. For example: http://www.example.com/.

string feedpath

The URL of the actual sitemap. For example: http://www.example.com/sitemap.xml.

Returns
Type Description
SitemapsResource.SubmitRequest
In this article
Back to top Generated by DocFX