Show / Hide Table of Contents

Class CalendarsResource

The "calendars" collection of methods.

Inheritance
object
CalendarsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Calendar.v3
Assembly: Google.Apis.Calendar.v3.dll
Syntax
public class CalendarsResource

Constructors

CalendarsResource(IClientService)

Constructs a new resource.

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

Methods

Clear(string)

Clears a primary calendar. This operation deletes all events associated with the primary calendar of an account.

Declaration
public virtual CalendarsResource.ClearRequest Clear(string calendarId)
Parameters
Type Name Description
string calendarId

Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.

Returns
Type Description
CalendarsResource.ClearRequest

Delete(string)

Deletes a secondary calendar. Use calendars.clear for clearing all events on primary calendars.

Declaration
public virtual CalendarsResource.DeleteRequest Delete(string calendarId)
Parameters
Type Name Description
string calendarId

Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.

Returns
Type Description
CalendarsResource.DeleteRequest

Get(string)

Returns metadata for a calendar.

Declaration
public virtual CalendarsResource.GetRequest Get(string calendarId)
Parameters
Type Name Description
string calendarId

Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.

Returns
Type Description
CalendarsResource.GetRequest

Insert(Calendar)

Creates a secondary calendar.

Declaration
public virtual CalendarsResource.InsertRequest Insert(Calendar body)
Parameters
Type Name Description
Calendar body

The body of the request.

Returns
Type Description
CalendarsResource.InsertRequest

Patch(Calendar, string)

Updates metadata for a calendar. This method supports patch semantics.

Declaration
public virtual CalendarsResource.PatchRequest Patch(Calendar body, string calendarId)
Parameters
Type Name Description
Calendar body

The body of the request.

string calendarId

Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.

Returns
Type Description
CalendarsResource.PatchRequest

Update(Calendar, string)

Updates metadata for a calendar.

Declaration
public virtual CalendarsResource.UpdateRequest Update(Calendar body, string calendarId)
Parameters
Type Name Description
Calendar body

The body of the request.

string calendarId

Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.

Returns
Type Description
CalendarsResource.UpdateRequest
In this article
Back to top Generated by DocFX