Show / Hide Table of Contents

Class SitesResource

The "sites" collection of methods.

Inheritance
System.Object
SitesResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Webmasters.v3
Assembly: Google.Apis.Webmasters.v3.dll
Syntax
public class SitesResource

Constructors

SitesResource(IClientService)

Constructs a new resource.

Declaration
public SitesResource(IClientService service)
Parameters
Type Name Description
Google.Apis.Services.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
System.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
System.String siteUrl

The URI of the property as defined in Search Console. Examples: http://www.example.com/ or android-app://com.example/ Note: for property-sets, use the URI that starts with sc-set: which is used in Search Console URLs.

Returns
Type Description
SitesResource.DeleteRequest

Get(String)

Retrieves information about specific site.

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

The URI of the property as defined in Search Console. Examples: http://www.example.com/ or android-app://com.example/ Note: for property-sets, use the URI that starts with sc-set: which is used in Search Console URLs.

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