Share via


PortfolioAnalyses Constructor

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

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

Syntax

'Declaration
Public Sub New
'Usage

Dim instance As New PortfolioAnalyses()
public PortfolioAnalyses()

Remarks

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

Examples

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

private static PortfolioAnalysesWebSvc.PortfolioAnalyses portfolioAnalyses = new PortfolioAnalysesWebSvc.PortfolioAnalysis();

In the following statement, SvcPortfolioAnalyses is an arbitrary namespace for the WCF-based PortfolioAnalyses 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 SvcPortfolioAnalyses.PortfolioAnalysesClient portfolioAnalysesClient = new SvcPortfolioAnalyses.PortfolioAnalysesClient(endpt);

See Also

Reference

PortfolioAnalyses Class

PortfolioAnalyses Members

PortfolioAnalyses Web Service