Calendar class
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 | .NET | JSOM | REST | Type | Description |
---|---|---|---|---|---|
BaseCalendarExceptions | ✓ | ✓ | ✓ | CalendarExceptionCollection | Gets the collection of exceptions to base calendars. |
Created | ✓ | ✓ | ✓ | DateTime | Gets the date that the calendar was created. |
Id | ✓ | ✓ | ✓ | Guid | Gets the GUID of the calendar. |
IsStandardCalendar | ✓ | ✓ | ✓ | Boolean | Gets a value that indicates whether the calendar is Gregorian. |
Modified | ✓ | ✓ | ✓ | DateTime | Gets the date that the calendar was modified. |
Name | ✓ | ✓ | ✓ | String | Gets the name of the calendar. |
OriginalId | ✓ | Guid | The Id of the calendar that this calendar was copied from. |
Methods
Name | .NET | JSOM | REST | Return Type | Description |
---|---|---|---|---|---|
CopyTo(String name) | ✓ | ✓ | ✓ | Calendar | Makes a copy of the calendar and gives the copy a new name. |
DeleteObject() | ✓ | ✓ | ✓ | void | Deletes 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
Name | Type | Description |
---|---|---|
name | String | The name of the new calendar. |
Return Value
DeleteObject()
Deletes the calendar object.
Syntax
void DeleteObject()
Parameters
None
Return Value
void
See Also
CalendarCollection
CalendarCreationInformation
CalendarException
DraftProject
DraftTask
EnterpriseResource
PublishedProject
PublishedTask