Show / Hide Table of Contents

Class SitesResource

The "sites" collection of methods.

Inheritance
object
SitesResource
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 SitesResource

Constructors

SitesResource(IClientService)

Constructs a new resource.

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

Methods

Add(string)

Adds a site to the set of the user's sites in Search Console.

Declaration
public virtual SitesResource.AddRequest Add(string siteUrl)
Parameters
Type Name Description
string siteUrl

The URL of the site to add.

Returns
Type Description
SitesResource.AddRequest

Delete(string)

Removes a site from the set of the user's Search Console sites.

Declaration
public virtual SitesResource.DeleteRequest Delete(string siteUrl)
Parameters
Type Name Description
string siteUrl

The URI of the property as defined in Search Console. Examples: http://www.example.com/ or sc-domain:example.com.

Returns
Type Description
SitesResource.DeleteRequest

Get(string)

Retrieves information about specific site.

Declaration
public virtual SitesResource.GetRequest Get(string siteUrl)
Parameters
Type Name Description
string siteUrl

The URI of the property as defined in Search Console. Examples: http://www.example.com/ or sc-domain:example.com.

Returns
Type Description
SitesResource.GetRequest

List()

Lists the user's Search Console sites.

Declaration
public virtual SitesResource.ListRequest List()
Returns
Type Description
SitesResource.ListRequest
In this article
Back to top Generated by DocFX