Share via


Driver Constructor

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

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

Syntax

'Declaration
Public Sub New
'Usage

Dim instance As New Driver()
public Driver()

Remarks

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

Examples

In the following statement, DriverWebSvc is an arbitrary namespace for the ASMX-based Driver web service.

private static DriverWebSvc.Driver driver = new DriverWebSvc.Driver();

In the following statement, SvcDriver is an arbitrary namespace for the WCF-based Driver 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 SvcDriver.DriverClient driverClient = new SvcDriver.DriverClient(endpt);

See Also

Reference

Driver Class

Driver Members

Driver Web Service