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

 

Adds a reference to an XML Web service that already has a discomap file and was not necessarily discovered.

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

int AddWebReferenceTo(
	Object^ punkWebReferenceFolder,
	String^ bstrDestinationPath,
	String^ bstrDiscomapFilename
)

Parameters

punkWebReferenceFolder
Type: System::Object^

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

bstrDestinationPath
Type: System::String^

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

bstrDiscomapFilename
Type: System::String^

[in] Specifies the path for the discomap file location.

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::AddWebReferenceTo(
   [in] IUnknown* punkWebReferenceFolder,
   [in] BSTR bstrDestinationPath,
   [in] BSTR bstrDiscomapFilename
);
Return to top
Show: