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
'宣告
Function AddWebReference ( _
punkWebReferenceFolder As Object, _
bstrDestinationPath As String _
) As Integer
'用途
Dim instance As IDiscoveryResult
Dim punkWebReferenceFolder As Object
Dim bstrDestinationPath As String
Dim returnValue As Integer
returnValue = instance.AddWebReference(punkWebReferenceFolder, _
bstrDestinationPath)
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: 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.
Remarks
COM Signature
From discoveryservice.idl:
HRESULT IDiscoveryResult::AddWebReference(
[in] IUnknown* punkWebReferenceFolder,
[in] BSTR bstrDestinationPath
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.