IDiscoveryResult::AddWebReference Method (Object^, String^)

 

Call this method to download the files cached by the latest discovery session.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int AddWebReference(
	Object^ punkWebReferenceFolder,
	String^ bstrDestinationPath
)

Parameters

punkWebReferenceFolder
Type: System::Object^

[in] Specifies the reference folder of the project automation item.

bstrDestinationPath
Type: System::String^

[in] String containing the destination path of the folder where the files are to be stored.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From discoveryservice.idl:

HRESULT IDiscoveryResult::AddWebReference(
   [in] IUnknown* punkWebReferenceFolder,
   [in] BSTR bstrDestinationPath
);
Return to top
Show: