Class SitesResource
The "sites" collection of methods.
Inherited Members
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: |
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: |
Returns
| Type | Description |
|---|---|
| SitesResource.GetRequest |
List()
Lists the user's Search Console sites.
Declaration
public virtual SitesResource.ListRequest List()
Returns
| Type | Description |
|---|---|
| SitesResource.ListRequest |