Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
Syntax
'Declaration
Function AddWebReferenceTo ( _
    punkWebReferenceFolder As Object, _
    bstrDestinationPath As String, _
    bstrDiscomapFilename As String _
) As Integer
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
Parameters
- punkWebReferenceFolder 
 Type: Object- [in] Specifies the reference folder of the project automation item. 
- bstrDestinationPath 
 Type: String- [in] Specifies the destination path of the folder where the files are to be stored. 
- bstrDiscomapFilename 
 Type: String- [in] Specifies the path for the discomap file location. 
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::AddWebReferenceTo(
   [in] IUnknown* punkWebReferenceFolder,
   [in] BSTR bstrDestinationPath,
   [in] BSTR bstrDiscomapFilename
);
.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.