Table of contents
API
TOC
Collapse the table of content
Expand the table of content

Calendar class

Nadin Merali|Last Updated: 5/6/2017

inherits members from ClientObject

Represents a Project service calendar.

Syntax

CSOM

class Calendar 

JSOM

PS.Calendar

REST Interface

Supported.

PS.Calendar

http://contoso.sharepoint.com/sites/pwa/api/ProjectServer/Calendars('{calendarid}')

Members

✓ - Read Support       ✓ʷ - Write Support

Properties

Name.NETJSOMRESTTypeDescription
BaseCalendarExceptionsCalendarExceptionCollectionGets the collection of exceptions to base calendars.
CreatedDateTimeGets the date that the calendar was created.
IdGuidGets the GUID of the calendar.
IsStandardCalendarBooleanGets a value that indicates whether the calendar is Gregorian.
ModifiedDateTimeGets the date that the calendar was modified.
NameStringGets the name of the calendar.
OriginalIdGuidThe Id of the calendar that this calendar was copied from.

Methods

Name.NETJSOMRESTReturn TypeDescription
CopyTo(String name)CalendarMakes a copy of the calendar and gives the copy a new name.
DeleteObject()voidDeletes the calendar object.


Method Details

CopyTo(String name)

Makes a copy of the calendar and gives the copy a new name.

Syntax
Calendar CopyTo(String name)
Parameters
NameTypeDescription
nameStringThe name of the new calendar.
Return Value

Calendar

DeleteObject()

Deletes the calendar object.

Syntax
void DeleteObject()
Parameters

None

Return Value

void

See Also

CalendarCollection
CalendarCreationInformation
CalendarException
DraftProject
DraftTask
EnterpriseResource
PublishedProject
PublishedTask

© 2018 Microsoft