Partager via


IDiscoveryResult.AddWebReferenceTo(Object, String, String) Method

Definition

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

public:
 int AddWebReferenceTo(System::Object ^ punkWebReferenceFolder, System::String ^ bstrDestinationPath, System::String ^ bstrDiscomapFilename);
public:
 int AddWebReferenceTo(Platform::Object ^ punkWebReferenceFolder, Platform::String ^ bstrDestinationPath, Platform::String ^ bstrDiscomapFilename);
int AddWebReferenceTo(winrt::Windows::Foundation::IInspectable const & punkWebReferenceFolder, std::wstring const & bstrDestinationPath, std::wstring const & bstrDiscomapFilename);
public int AddWebReferenceTo (object punkWebReferenceFolder, string bstrDestinationPath, string bstrDiscomapFilename);
abstract member AddWebReferenceTo : obj * string * string -> int
Public Function AddWebReferenceTo (punkWebReferenceFolder As Object, bstrDestinationPath As String, bstrDiscomapFilename As String) As Integer

Parameters

punkWebReferenceFolder
Object

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

bstrDestinationPath
String

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

bstrDiscomapFilename
String

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

Returns

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

Remarks

COM Signature

From discoveryservice.idl:

HRESULT IDiscoveryResult::AddWebReferenceTo(  
   [in] IUnknown* punkWebReferenceFolder,  
   [in] BSTR bstrDestinationPath,  
   [in] BSTR bstrDiscomapFilename  
);  

Applies to