TimeSheet Web Service

The TimeSheet class is the primary class in the [TimeSheet Web service] namespace. The TimeSheet class includes methods that manage timesheets and timesheet lines.

Note

In the ASMX web service, TimeSheet is a class. In the WCF service, TimeSheet is an interface that is implemented in the TimeSheetClient class. For information about using the TimeSheetClient class in a WCF-based application, see the TimeSheet class constructor.

The [TimeSheet Web service] namespace is an arbitrary name for a reference to the Timesheet.asmx web service (or the TimeSheet.svc service) of the PSI in Microsoft Project Server 2010. Methods in the TimeSheet class can create, delete, submit, update, read, recall, or find the status of timesheets. Methods in the TimeSheet class also can find timesheets that are late or that are pending approval, find timesheets by date or period, get a list of timesheet approvers, preload work actuals and validate a timesheet line, and get information about non-project (administrative) timesheet lines.

TimeSheet methods typically use or return one of the following DataSet objects:

Classes

  Class Description
Public class ProjectTimesheetLinesDataSet Specifies a collection of timesheet line item data rows.
Public class ProjectTimesheetLinesDataSet.ActualsDataTable Represents information about actual time expended contained in one or more ProjectTimesheetLinesDataSet.ActualsRow objects.
Public class ProjectTimesheetLinesDataSet.ActualsRow Represents actual time expended information, as a row in the ProjectTimesheetLinesDataSet.ActualsDataTable object.
Public class ProjectTimesheetLinesDataSet.ActualsRowChangeEvent Event that occurs when data in an ActualsRow is changed.
Public class ProjectTimesheetLinesDataSet.CustomFieldsDataTable Represents information about timesheet custom fields that is contained in one or more ProjectTimesheetLinesDataSet.CustomFieldsRow objects.
Public class ProjectTimesheetLinesDataSet.CustomFieldsRow Represents timesheet custom fields information as a row in the ProjectTimesheetLinesDataSet.CustomFieldsDataTable object.
Public class ProjectTimesheetLinesDataSet.CustomFieldsRowChangeEvent Event that occurs when data in a CustomFieldsRow is changed.
Public class ProjectTimesheetLinesDataSet.ProjectTimesheetLinesDataTable Represents information about timesheet line data that is contained in one or more ProjectTimesheetLinesDataSet.ProjectTimesheetLinesRow objects.
Public class ProjectTimesheetLinesDataSet.ProjectTimesheetLinesRow Contains values for the most recently saved work on an assignment, and related project information, for one timesheet line.
Public class ProjectTimesheetLinesDataSet.ProjectTimesheetLinesRowChangeEvent Event that occurs when data in a ProjectTimesheetLinesRow is changed.
Public class ResourceDataSet Contains information about enterprise resources. For more information, see the items documented in [Resource Web service].
Public class ResourceDataSet.CalendarExceptionsDataTable Represents information about resource calendar conflicts that is contained in one or more ResourceDataSet.CalendarExceptionsRow objects.
Public class ResourceDataSet.CalendarExceptionsRow Represents a calendar exception for one resource.
Public class ResourceDataSet.CalendarExceptionsRowChangeEvent Event that occurs when data in a CalendarExceptionsRow is changed.
Public class ResourceDataSet.ResourceAvailabilitiesDataTable Represents information about resource availabilities that is contained in one or more ResourceDataSet.ResourceAvailabilitiesRow objects.
Public class ResourceDataSet.ResourceAvailabilitiesRow Represents the availability of the resource that is identified with the RES_UID property.
Public class ResourceDataSet.ResourceAvailabilitiesRowChangeEvent Event that occurs when data in a ResourceAvailabilitiesRow is changed.
Public class ResourceDataSet.ResourceCustomFieldsDataTable Represents information about resource custom fields that is contained in one or more ResourceDataSet.ResourceCustomFieldsRow objects.
Public class ResourceDataSet.ResourceCustomFieldsRow Represents a custom field value for a specific ResourceRow row.
Public class ResourceDataSet.ResourceCustomFieldsRowChangeEvent Event that occurs when data in a ResourceCustomFieldsRow is changed.
Public class ResourceDataSet.ResourceRatesDataTable Represents information about resource rates that is contained in one or more ResourceDataSet.ResourceRatesRow objects.
Public class ResourceDataSet.ResourceRatesRow Represents one set of cost rate data for a resource.
Public class ResourceDataSet.ResourceRatesRowChangeEvent Event that occurs when data in a ResourceRatesRow is changed.
Public class ResourceDataSet.ResourcesDataTable Represents information about project resources that is contained in one or more ResourceDataSet.ResourcesRow objects.
Public class ResourceDataSet.ResourcesRow Represents an enterprise resource.
Public class ResourceDataSet.ResourcesRowChangeEvent Event that occurs when data in a ResourcesRow is changed.
Public class TimeSheet Includes methods for managing timesheets in Microsoft Project Server 2010.
Public class TimesheetDataSet Represents the dataset that is used when working with the TimeSheet object and other objects in the [TimeSheet Web service] namespace.
Public class TimesheetDataSet.ActionsDataTable Contains a record of the actions that are performed on this timesheet.
Public class TimesheetDataSet.ActionsRow Represents an action performed on the timesheet that is pointed to by the HeadersRow property.
Public class TimesheetDataSet.ActionsRowChangeEvent Event that occurs when data in a ActionsRow is changed.
Public class TimesheetDataSet.ActualsDataTable Contains the actual number of hours that the resource worked for the entries in the Lines property.
Public class TimesheetDataSet.ActualsRow Contains the actual number of hours that are recorded for the related TimesheetDataSet.LinesRow object.
Public class TimesheetDataSet.ActualsRowChangeEvent Event that occurs when data in a ActualsRow is changed.
Public class TimesheetDataSet.AuditsDataTable The Audits table contains a line for each TimesheetEnum.AuditOperationType that is applied to a timesheet.
Public class TimesheetDataSet.AuditsRow Records a TimesheetEnum.AuditOperationType type (Add or Delete) that is applied to a timesheet.
Public class TimesheetDataSet.AuditsRowChangeEvent Event that occurs when data in a AuditsRow is changed.
Public class TimesheetDataSet.CustomFieldsDataTable Contains custom field values for related timesheets.
Public class TimesheetDataSet.CustomFieldsRow Represents a custom field value that is entered for a timesheet row.
Public class TimesheetDataSet.CustomFieldsRowChangeEvent Event that occurs when data in a CustomFieldsRow is changed.
Public class TimesheetDataSet.HeadersDataTable Contains an entry for each timesheet in this dataset.
Public class TimesheetDataSet.HeadersRow Represents one timesheet.
Public class TimesheetDataSet.HeadersRowChangeEvent Event that occurs when data in a HeadersRow is changed.
Public class TimesheetDataSet.LinesDataTable Contains a row for each line of each timesheet in this dataset.
Public class TimesheetDataSet.LinesRow Represents a timesheet line item.
Public class TimesheetDataSet.LinesRowChangeEvent Event that occurs when data in a LinesRow is changed.
Public class TimesheetDataSet.StatusingChangeLogDataTable The Statusing data change log for the timesheet single entry mode.
Public class TimesheetDataSet.StatusingChangeLogRow Represents one record of the Statusing data change log for the timesheet single entry mode.
Public class TimesheetDataSet.StatusingChangeLogRowChangeEvent Event that occurs when data in a StatusingChangeLogRow is changed.
Public class TimesheetListDataSet Represents a list of timesheets.
Public class TimesheetListDataSet.TimesheetsDataTable Represents information about a timesheet list that is contained in one or more TimesheetListDataSet.TimesheetsRow objects.
Public class TimesheetListDataSet.TimesheetsRow Specifies one row of timesheet list data.
Public class TimesheetListDataSet.TimesheetsRowChangeEvent Event that occurs when data in a TimesheetsRow is changed.

Delegates

  Delegate Description
Public delegate ProjectTimesheetLinesDataSet.ActualsRowChangeEventHandler Describes event handler settings for when data associated with a ProjectTimesheetLinesDataSet.ActualsRow is edited and an event should be triggered.
Public delegate ProjectTimesheetLinesDataSet.CustomFieldsRowChangeEventHandler Describes event handler settings for when data associated with a ProjectTimesheetLinesDataSet.CustomFieldsRow is edited and an event should be triggered.
Public delegate ProjectTimesheetLinesDataSet.ProjectTimesheetLinesRowChangeEventHandler Describes event handler settings for when data associated with a ProjectTimesheetLinesDataSet.ProjectTimesheetLinesRow is edited and an event should be triggered.
Public delegate ResourceDataSet.CalendarExceptionsRowChangeEventHandler Describes event handler settings for when data associated with a ResourceDataSet.CalendarExceptionsRow is edited and an event should be triggered.
Public delegate ResourceDataSet.ResourceAvailabilitiesRowChangeEventHandler Describes event handler settings for when data associated with a ResourceDataSet.ResourceAvailabilitiesRow is edited and an event should be triggered.
Public delegate ResourceDataSet.ResourceCustomFieldsRowChangeEventHandler Describes event handler settings for when data associated with a ResourceDataSet.ResourceCustomFieldsRow is edited and an event should be triggered.
Public delegate ResourceDataSet.ResourceRatesRowChangeEventHandler Describes event handler settings for when data associated with a ResourceDataSet.ResourceRatesRow is edited and an event should be triggered.
Public delegate ResourceDataSet.ResourcesRowChangeEventHandler Describes event handler settings for when data associated with a ResourceDataSet.ResourcesRow is edited and an event should be triggered.
Public delegate TimesheetDataSet.ActionsRowChangeEventHandler Describes event handler settings for when data associated with a TimesheetDataSet.ActionsRow is edited and an event should be triggered.
Public delegate TimesheetDataSet.ActualsRowChangeEventHandler Describes event handler settings for when data associated with a TimesheetDataSet.ActualsRow is edited and an event should be triggered.
Public delegate TimesheetDataSet.AuditsRowChangeEventHandler Describes event handler settings for when data associated with a TimesheetDataSet.AuditsRow is edited and an event should be triggered.
Public delegate TimesheetDataSet.CustomFieldsRowChangeEventHandler Describes event handler settings for when data associated with a TimesheetDataSet.CustomFieldsRow is edited and an event should be triggered.
Public delegate TimesheetDataSet.HeadersRowChangeEventHandler Describes event handler settings for when data associated with a TimesheetDataSet.HeadersRow is edited and an event should be triggered.
Public delegate TimesheetDataSet.LinesRowChangeEventHandler Describes event handler settings for when data associated with a TimesheetDataSet.LinesRow is edited and an event should be triggered.
Public delegate TimesheetDataSet.StatusingChangeLogRowChangeEventHandler Describes event handler settings for when data associated with a TimesheetDataSet.StatusingChangeLogRow is edited and an event should be triggered.
Public delegate TimesheetListDataSet.TimesheetsRowChangeEventHandler Describes event handler settings for when data associated with a TimesheetListDataSet.TimesheetsRow is edited and an event should be triggered.

Enumerations

  Enumeration Description
Public enumeration Action Specifies the action to take on a timesheet.
Public enumeration Navigation Specifies how to navigate a list of timesheet lines.
Public enumeration PreloadType Indicates which lines to preload into a timesheet.
Public enumeration ProjectTimesheetLineQueryType Specifies the timesheet line query type.