Condividi tramite


Admin Constructor

Creates an Admin object from the ASMX-based Admin web service.

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

Syntax

'Declaration
Public Sub New
'Usage

Dim instance As New Admin()
public Admin()

Remarks

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

Examples

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

private static AdminWebSvc.Admin admin = new AdminWebSvc.Admin();

In the following statement, SvcAdmin is an arbitrary namespace for the WCF-based Admin 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 SvcAdmin.AdminClient adminClient = new SvcAdmin.AdminClient(endpt);

See Also

Reference

Admin Class

Admin Members

Admin Web Service