Export (0) Print
Expand All

TimeSheet constructor

Creates a TimeSheet object from the ASMX-based TimeSheet web service.

Namespace:  WebSvcTimeSheet
Assembly:  ProjectServerServices (in ProjectServerServices.dll)

public TimeSheet()

To create an object that is equivalent to TimeSheet by using the Windows Communication Foundation (WCF) API, use one of the TimeSheetClient constructors.

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:
© 2015 Microsoft