IDiscoverySession Interface
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)

public interface IDiscoverySession

The IDiscoverySession type exposes the following members.

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.

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

© 2016 Microsoft