다음을 통해 공유


IDiscoveryResult.AddWebReference Method

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)

Syntax

'Declaration
Function AddWebReference ( _
    punkWebReferenceFolder As Object, _
    bstrDestinationPath As String _
) As Integer
int AddWebReference(
    Object punkWebReferenceFolder,
    string bstrDestinationPath
)
int AddWebReference(
    [InAttribute] Object^ punkWebReferenceFolder, 
    [InAttribute] String^ bstrDestinationPath
)
abstract AddWebReference : 
        punkWebReferenceFolder:Object * 
        bstrDestinationPath:string -> int
function AddWebReference(
    punkWebReferenceFolder : Object, 
    bstrDestinationPath : String
) : int

Parameters

  • punkWebReferenceFolder
    Type: Object

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

  • bstrDestinationPath
    Type: String

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

Return Value

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

Remarks

COM Signature

From discoveryservice.idl:

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

.NET Framework Security

See Also

Reference

IDiscoveryResult Interface

Microsoft.VisualStudio.Shell.Interop Namespace