Share via


CubeAdmin Constructor

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

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

Syntax

'Declaration
Public Sub New
'Usage

Dim instance As New CubeAdmin()
public CubeAdmin()

Remarks

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

Examples

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

private static CubeAdminWebSvc.CubeAdmin cubeAdmin = new CubeAdminWebSvc.CubeAdmin();

In the following statement, SvcCubeAdmin is an arbitrary namespace for the WCF-based CubeAdmin 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 SvcCubeAdmin.CubeAdminClient cubeAdminClient = new SvcCubeAdmin.CubeAdminClient(endpt);

See Also

Reference

CubeAdmin Class

CubeAdmin Members

CubeAdmin Web Service