DiscoveryClientProtocol.WriteAll Method
Assembly: System.Web.Services (in system.web.services.dll)
public:
DiscoveryClientResultCollection^ WriteAll (
String^ directory,
String^ topLevelFilename
)
public DiscoveryClientResultCollection WriteAll ( String directory, String topLevelFilename )
public function WriteAll ( directory : String, topLevelFilename : String ) : DiscoveryClientResultCollection
Not applicable.
Parameters
- directory
The directory in which to save all documents currently in the Documents property.
- topLevelFilename
The name of the file to create or overwrite containing a map of all documents saved.
Return Value
A DiscoveryClientResultCollection containing the results of all files saved.The file created with the name of the topLevelFilename parameter in the directory specified by the directory parameter contains a map of saved discovery documents, XML Schema Definition (XSD) schemas and service descriptions. This file can be read in using the ReadAll method to populate the References and Documents properties. The format of the file is XML containing an serialized version of the DiscoveryClientProtocol.DiscoveryClientResultsFile class.
If a file exists with the same name as the topLevelFilename parameter in the directory parameter, that file is overwritten by the WriteAll method. The topLevelFilename parameter must include the fully qualified path if the file does not exist in the current directory.
The following code example is a Web Form that writes the results of a Web Services discovery to disk by invoking the WriteAll method after calls to DiscoverAny and ResolveAll.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.