IDiscoveryResult2.DownloadServiceDocument Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Updates an output parameter with a pointer to a pointer to a Client Discovery Result Collection Object containing the results of a Web Service Discovery Session
public:
int DownloadServiceDocument(System::String ^ bstrDestinationPath, System::String ^ bstrDiscomapFileName, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IDiscoveryClientResultCollection ^ % ppIDiscoveryClientResultCollection);
public:
int DownloadServiceDocument(Platform::String ^ bstrDestinationPath, Platform::String ^ bstrDiscomapFileName, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IDiscoveryClientResultCollection ^ & ppIDiscoveryClientResultCollection);
int DownloadServiceDocument(std::wstring const & bstrDestinationPath, std::wstring const & bstrDiscomapFileName, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IDiscoveryClientResultCollection const & & ppIDiscoveryClientResultCollection);
public int DownloadServiceDocument (string bstrDestinationPath, string bstrDiscomapFileName, out Microsoft.VisualStudio.Shell.Interop.IDiscoveryClientResultCollection ppIDiscoveryClientResultCollection);
abstract member DownloadServiceDocument : string * string * IDiscoveryClientResultCollection -> int
Public Function DownloadServiceDocument (bstrDestinationPath As String, bstrDiscomapFileName As String, ByRef ppIDiscoveryClientResultCollection As IDiscoveryClientResultCollection) As Integer
Parameters
- bstrDestinationPath
- String
[in] String containing the destination path to the folder where the files are to be stored.
- bstrDiscomapFileName
- String
[in] String containing the destination path to the discomap file.
- ppIDiscoveryClientResultCollection
- IDiscoveryClientResultCollection
[out] Pointer to a pointer to a IDiscoveryClientResultCollection.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From discoveryservice80.idl:
HRESULT IDiscoveryResult2::DownloadServiceDocument(
[in] BSTR bstrDestinationPath,
[in] BSTR bstrDiscomapFileName,
[out, retval] IDiscoveryClientResultCollection **ppIDiscoveryClientResultCollection
);