Share via


TimeSheetPeriodCollection class

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

Methods

Name .NET JSOM REST Return Type Description
'{TimeSheetPeriodId}' TimeSheetPeriod Gets a TimeSheetPeriod from the collection with the specified TimeSheetPeriodId.
GetByGuid(Guid uid) TimeSheetPeriod Gets a TimeSheetPeriod from the collection with the Guid value.
GetById(String objectId) TimeSheetPeriod Gets a TimeSheetPeriod from the collection with the Id 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
Name Type Description
TimeSheetPeriodId String the id of the TimeSheetPeriod
Return Value

TimeSheetPeriod

GetByGuid(Guid uid)

Gets a TimeSheetPeriod from the collection with the Guid value.

Syntax
TimeSheetPeriod GetByGuid(Guid uid)
Parameters
Name Type Description
uid Guid The Guid of the TimeSheetPeriod
Return Value

TimeSheetPeriod

GetById(String objectId)

Gets a TimeSheetPeriod from the collection with the Id value.

Syntax
TimeSheetPeriod GetById(String objectId)
Parameters
Name Type Description
objectId String The id of the TimeSheetPeriod.
Return Value

TimeSheetPeriod

See Also

ProjectContext
TimeSheetPeriod