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

TimeSheetLine class

Nadin Merali|Last Updated: 5/6/2017

inherits members from ClientObject

Represents a line in a timesheet.

Syntax

CSOM

class TimeSheetLine 

JSOM

PS.TimeSheetLine

REST Interface

Supported.

PS.TimeSheetLine

http://contoso.sharepoint.com/sites/pwa/_api/ProjectServer/TimeSheetPeriods('{periodid}')/TimeSheet/Lines('{lineid}')

Members

✓ - Read Support       ✓ʷ - Write Support

Properties

Name.NETJSOMRESTTypeDescription
AssignmentPublishedAssignmentGets the assignment that is associated with the timesheet line.
Comment✓ʷ✓ʷ✓ʷStringGets or sets the timesheet line comment.
IdGuidGets the GUID of the timesheet line.
LineClass✓ʷ✓ʷ✓ʷTimeSheetLineClassGets or sets the class of the timesheet line.
ProjectNameStringGets the timesheet line project name.
Status✓ʷ✓ʷ✓ʷTimeSheetLineStatusGets or sets the timesheet line status.
TaskNameStringGets the timesheet line task name.
TimeSheetTimeSheetGets the timesheet that is associated with the timesheet line.
TotalWorkStringGets the total amount of work in a timesheet line.
TotalWorkMillisecondsIntegerGets or sets the time interval, expressed in milliseconds, for the total amount of work in a timesheet line.
TotalWorkTimeSpanTimeSpanGets the time interval for the total amount of work in a timesheet line.
ValidationTypeTimeSheetValidationTypeGets the timesheet validation type.
WorkTimeSheetWorkCollectionGets the actual work on the timesheet.

Methods

Name.NETJSOMRESTReturn TypeDescription
DeleteObject()voidDeletes the time sheet line object.
Submit(String comment)voidSubmits the time sheet line.


Method Details

DeleteObject()

Deletes the time sheet line object.

Syntax
void DeleteObject()
Parameters

None

Return Value

void

Submit(String comment)

Submits the time sheet line.

Syntax
void Submit(String comment)
Parameters
NameTypeDescription
commentStringA comment about the timesheet line.
Return Value

void

See Also

TimeSheetLineCollection
TimeSheetLineCreationInformation

© 2018 Microsoft