IDiscoveryResult2.DownloadServiceDocument Method
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
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'宣言
Function DownloadServiceDocument ( _
bstrDestinationPath As String, _
bstrDiscomapFileName As String, _
<OutAttribute> ByRef ppIDiscoveryClientResultCollection As IDiscoveryClientResultCollection _
) As Integer
'使用
Dim instance As IDiscoveryResult2
Dim bstrDestinationPath As String
Dim bstrDiscomapFileName As String
Dim ppIDiscoveryClientResultCollection As IDiscoveryClientResultCollection
Dim returnValue As Integer
returnValue = instance.DownloadServiceDocument(bstrDestinationPath, _
bstrDiscomapFileName, ppIDiscoveryClientResultCollection)
int DownloadServiceDocument(
string bstrDestinationPath,
string bstrDiscomapFileName,
out IDiscoveryClientResultCollection ppIDiscoveryClientResultCollection
)
int DownloadServiceDocument(
[InAttribute] String^ bstrDestinationPath,
[InAttribute] String^ bstrDiscomapFileName,
[OutAttribute] IDiscoveryClientResultCollection^% ppIDiscoveryClientResultCollection
)
function DownloadServiceDocument(
bstrDestinationPath : String,
bstrDiscomapFileName : String,
ppIDiscoveryClientResultCollection : IDiscoveryClientResultCollection
) : int
Parameters
bstrDestinationPath
Type: System.String[in] String containing the destination path to the folder where the files are to be stored.
bstrDiscomapFileName
Type: System.String[in] String containing the destination path to the discomap file.
ppIDiscoveryClientResultCollection
Type: Microsoft.VisualStudio.Shell.Interop.IDiscoveryClientResultCollection%[out] Pointer to a pointer to a IDiscoveryClientResultCollection.
Return Value
Type: System.Int32
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
);
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.