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

TimeSheetPeriodCollection class

Nadin Merali|Last Updated: 5/6/2017

inherits members from ClientObjectCollection

Represents a collection of TimeSheetPeriod objects.

Syntax

CSOM

class TimeSheetPeriodCollection 

JSOM

PS.TimeSheetPeriodCollection

REST Interface

Supported.

PS.TimeSheetPeriodCollection

http://contoso.sharepoint.com/sites/pwa/_api/ProjectServer/TimeSheetPeriods

Members

✓ - Read Support       ✓ʷ - Write Support

Properties

Name.NETJSOMRESTTypeDescription
[Integer]TimeSheetPeriodGets a TimeSheetPeriod from the collection at the specified index.
ItemTimeSheetPeriodGets a TimeSheetPeriod from the collection at the specified index.

Methods

Name.NETJSOMRESTReturn TypeDescription
'{TimeSheetPeriodId}'TimeSheetPeriodGets a TimeSheetPeriod from the collection with the specified TimeSheetPeriodId.
GetByGuid(Guid uid)TimeSheetPeriodGets a TimeSheetPeriod from the collection with the Id value.
GetById(String objectId)TimeSheetPeriodGets a TimeSheetPeriod from the collection with the Guid value.


Method Details

'{TimeSheetPeriodId}'

Gets a TimeSheetPeriod from the collection with the specified TimeSheetPeriodId.

Syntax
TimeSheetPeriod http://contoso.sharepoint.com/sites/pwa/_api/ProjectServer/TimeSheetPeriods('{TimeSheetPeriodId}')
Parameters
NameTypeDescription
TimeSheetPeriodIdStringthe id of the TimeSheetPeriod
Return Value

TimeSheetPeriod

GetByGuid(Guid uid)

Gets a TimeSheetPeriod from the collection with the Id value.

Syntax
TimeSheetPeriod GetByGuid(Guid uid)
Parameters
NameTypeDescription
uidGuidThe Guid of the TimeSheetPeriod
Return Value

TimeSheetPeriod

GetById(String objectId)

Gets a TimeSheetPeriod from the collection with the Guid value.

Syntax
TimeSheetPeriod GetById(String objectId)
Parameters
NameTypeDescription
objectIdStringThe id of the TimeSheetPeriod.
Return Value

TimeSheetPeriod

See Also

ProjectContext
TimeSheetPeriod

© 2018 Microsoft