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

CalendarExceptionCollection class

Nadin Merali|Last Updated: 5/6/2017

inherits members from ClientObjectCollection

Represents a collection of calendar exceptions.

Syntax

CSOM

class CalendarExceptionCollection 

JSOM

PS.CalendarExceptionCollection

REST Interface

Supported.

PS.CalendarExceptionCollection

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

Members

✓ - Read Support       ✓ʷ - Write Support

Properties

Name.NETJSOMRESTTypeDescription
[Integer]CalendarExceptionGets a CalendarException from the collection at the specified index.
ItemCalendarExceptionGets a CalendarException from the collection at the specified index.

Methods

Name.NETJSOMRESTReturn TypeDescription
Add(CalendarExceptionCreationInformation parameters)CalendarExceptionAdds the CalendarException that is specified by the CalendarExceptionCreationInformation object to the collection.
GetById(Integer id)CalendarExceptionGets a CalendarException from the collection with the Guid value.
Remove(CalendarException exception)BooleanRemoves the specified CalendarException from the collection.


Method Details

Add(CalendarExceptionCreationInformation parameters)

Adds the CalendarException that is specified by the CalendarExceptionCreationInformation object to the collection.

Syntax
CalendarException Add(CalendarExceptionCreationInformation parameters)
Parameters
NameTypeDescription
parametersCalendarExceptionCreationInformationThe properties that can be set when creating a calendar exception.
Return Value

CalendarException

GetById(Integer id)

Gets a CalendarException from the collection with the Guid value.

Syntax

CalendarException GetById(Integer id)
Parameters
NameTypeDescription
idIntegerThe id of the CalendarException.
Return Value

CalendarException

Remove(CalendarException exception)

Removes the specified CalendarException from the collection.

Syntax

Boolean Remove(CalendarException exception)
Parameters
NameTypeDescription
exceptionCalendarExceptionThe CalendarException to remove.
Return Value

Boolean

See Also

Calendar
CalendarException
CalendarExceptionCreationInformation
EnterpriseResource

© 2018 Microsoft