Project constructor

Office 2013 and later

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

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

No code example is currently available or this language may not be supported.

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

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

private static WebSvcProject.Project project = new WebSvcProject.Project();

In the following statement, WebSvcProject is an arbitrary namespace for the WCF-based Project web 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 WebSvcProject.ProjectClient projectClient = new WebSvcProject.ProjectClient(endpt);
Show: