TimeSheet constructor
Office 2013 and later
Creates a TimeSheet object from the ASMX-based TimeSheet web service.
Namespace: WebSvcTimeSheet
Assembly: ProjectServerServices (in ProjectServerServices.dll)
In the following statement, TimeSheetWebSvc is an arbitrary namespace for the ASMX-based TimeSheet web service.
private static TimeSheetWebSvc.TimeSheet timesheet = new TimeSheetWebSvc.Timesheet();
In the following statement, SvcTimeSheet is an arbitrary namespace for the WCF-based TimeSheet service. The endpt parameter is a String value that specifies the name of the client endpoint address in the app.config file (or in the web.config file for web applications).
private static SvcTimeSheet.TimeSheetClient timesheetClient = new SvcTimesheet.TimesheetClient(endpt);
Show: