TimeSheet constructor
Creates a TimeSheet object from the ASMX-based TimeSheet web service.
Namespace: WebSvcTimeSheet
Assembly: ProjectServerServices (in ProjectServerServices.dll)
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);