DiscoveryClientProtocol::ReadAll Method (String^)

 

Reads in a file containing a map of saved discovery documents populating the Documents and References properties, with discovery documents, XML Schema Definition (XSD) schemas, and service descriptions referenced in the file.

Namespace:   System.Web.Services.Discovery
Assembly:  System.Web.Services (in System.Web.Services.dll)

public:
[PermissionSetAttribute(SecurityAction::LinkDemand, Name = "FullTrust")]
DiscoveryClientResultCollection^ ReadAll(
	String^ topLevelFilename
)

Parameters

topLevelFilename
Type: System::String^

Name of file to read in, containing the map of saved discovery documents.

Return Value

Type: System.Web.Services.Discovery::DiscoveryClientResultCollection^

A DiscoveryClientResultCollection containing the results found in the file with the map of saved discovery documents. The file format is a DiscoveryClientProtocol::DiscoveryClientResultsFile class serialized into XML; however, one would typically create the file using only the WriteAll method or Disco.exe.

A file containing a map of saved discovery documents can be created by the WriteAll method or Disco.exe.

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 populates a DataGrid with the details about the documents and references found in an existing discovery map document using the ReadAll method.

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

.NET Framework
Available since 1.1
Return to top
Show: