Partager via


TimeSheet Constructor

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

Namespace:  [TimeSheet Web service]
Service reference: http://ServerName:32843/[Project Service Application GUID]/PSI/TimeSheet.svc
Web service reference: http://ServerName/ProjectServerName/_vti_bin/PSI/TimeSheet.asmx?wsdl

Syntax

'Declaration
Public Sub New
'Usage

Dim instance As New TimeSheet()
public TimeSheet()

Remarks

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

Examples

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);

See Also

Reference

TimeSheet Class

TimeSheet Members

TimeSheet Web Service