IDiscoveryResult.AddWebReferenceTo Method

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)


Function AddWebReferenceTo ( _
    punkWebReferenceFolder As Object, _
    bstrDestinationPath As String, _
    bstrDiscomapFilename As String _
) As Integer
‘사용 방법
Dim instance As IDiscoveryResult
Dim punkWebReferenceFolder As Object
Dim bstrDestinationPath As String
Dim bstrDiscomapFilename As String
Dim returnValue As Integer

returnValue = instance.AddWebReferenceTo(punkWebReferenceFolder, _
    bstrDestinationPath, bstrDiscomapFilename)
int AddWebReferenceTo(
    Object punkWebReferenceFolder,
    string bstrDestinationPath,
    string bstrDiscomapFilename
int AddWebReferenceTo(
    [InAttribute] Object^ punkWebReferenceFolder, 
    [InAttribute] String^ bstrDestinationPath, 
    [InAttribute] String^ bstrDiscomapFilename
abstract AddWebReferenceTo : 
        punkWebReferenceFolder:Object * 
        bstrDestinationPath:string * 
        bstrDiscomapFilename:string -> int 
function AddWebReferenceTo(
    punkWebReferenceFolder : Object, 
    bstrDestinationPath : String, 
    bstrDiscomapFilename : String
) : int


  • 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.


COM Signature

From discoveryservice.idl:

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

.NET Framework Security

See Also


IDiscoveryResult Interface

IDiscoveryResult Members

Microsoft.VisualStudio.Shell.Interop Namespace