CalendarExceptionCollection class

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 .NET JSOM REST Type Description
[Integer] CalendarException Gets a CalendarException from the collection at the specified index.
Item CalendarException Gets a CalendarException from the collection at the specified index.

Methods

Name .NET JSOM REST Return Type Description
Add(CalendarExceptionCreationInformation parameters) CalendarException Adds the CalendarException that is specified by the CalendarExceptionCreationInformation object to the collection.
GetById(Integer id) CalendarException Gets a CalendarException from the collection with the Id value.
Remove(CalendarException exception) Boolean Removes 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
Name Type Description
parameters CalendarExceptionCreationInformation The properties that can be set when creating a calendar exception.
Return Value

CalendarException

GetById(Integer id)

Gets a CalendarException from the collection with the Id value.

Syntax

CalendarException GetById(Integer id)
Parameters
Name Type Description
id Integer The id of the CalendarException.
Return Value

CalendarException

Remove(CalendarException exception)

Removes the specified CalendarException from the collection.

Syntax

Boolean Remove(CalendarException exception)
Parameters
Name Type Description
exception CalendarException The CalendarException to remove.
Return Value

Boolean

See Also

Calendar
CalendarException
CalendarExceptionCreationInformation
EnterpriseResource