IDiscoverySession Interface
TOC
Collapse the table of content
Expand the table of content

IDiscoverySession Interface

Called by IVsAddWebReferenceDlg2 to discover XML Web services.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

[GuidAttribute("D622FE99-2087-4D78-8B49-7B46460475FD")]
[InterfaceTypeAttribute()]
public interface IDiscoverySession

The IDiscoverySession type exposes the following members.

  NameDescription
Public methodCancelDiscoverUrlUse this method to cancel the discovery process. The process will be ignored, but the thread itself will not be destroyed.
Public methodDiscoverUrlReturns a pointer to IDiscoveryResult.
Public methodDiscoverUrlAsyncReturns the discovery result after the file is downloaded.
Public methodGetDiscoverErrorRetrieves the exception if NotifyDiscoverComplete method takes in cookie = null.
Public methodUpdateWebReferenceDiscovers an XML Web service and then adds a reference to it.
Top

Implement the IDiscoverySession Interface when you add web references using IVsAddWebReferenceDlg2 Interface.

Notes to Implementers

Implement this interface when you need to create a discovery session to add Web service references.

Community Additions

ADD
Show:
© 2016 Microsoft