Archive Constructor

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

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

Syntax

'Declaration
Public Sub New
'Usage

Dim instance As New Archive()
public Archive()

Remarks

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

Examples

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

private static ArchiveWebSvc.Archive archive = new ArchiveWebSvc.Archive();

In the following statement, SvcArchive is an arbitrary namespace for the WCF-based Archive 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 SvcArchive.ArchiveClient archiveClient = new SvcArchive.ArchiveClient(endpt);

See Also

Reference

Archive Class

Archive Members

Archive Web Service