Partager via


ResourcePlan Constructor

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

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

Syntax

'Declaration
Public Sub New
'Usage

Dim instance As New ResourcePlan()
public ResourcePlan()

Remarks

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

Examples

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

private static ResourcePlanWebSvc.ResourcePlan resourcePlan = new ResourcePlanWebSvc.ResourcePlan();

In the following statement, SvcResourcePlan is an arbitrary namespace for the WCF-based ResourcePlan 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 SvcResourcePlan.ResourcePlanClient resourcePlanClient = new SvcResourcePlan.ResourcePlanClient(endpt);

See Also

Reference

ResourcePlan Class

ResourcePlan Members

ResourcePlan Web Service