Archive constructor

Office 2013 and later

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

Namespace:  WebSvcArchive
Assembly:  ProjectServerServices (in ProjectServerServices.dll)

No code example is currently available or this language may not be supported.

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

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);
Show: