Archive constructor
Office 2013 and later
Creates an Archive object from the ASMX-based Archive web service.
Namespace: WebSvcArchive
Assembly: ProjectServerServices (in ProjectServerServices.dll)
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: