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)

Syntax

'Declaration
<GuidAttribute("D622FE99-2087-4D78-8B49-7B46460475FD")> _
<InterfaceTypeAttribute()> _
Public Interface IDiscoverySession
[GuidAttribute("D622FE99-2087-4D78-8B49-7B46460475FD")]
[InterfaceTypeAttribute()]
public interface IDiscoverySession
[GuidAttribute(L"D622FE99-2087-4D78-8B49-7B46460475FD")]
[InterfaceTypeAttribute()]
public interface class IDiscoverySession
[<GuidAttribute("D622FE99-2087-4D78-8B49-7B46460475FD")>]
[<InterfaceTypeAttribute()>]
type IDiscoverySession =  interface end
public interface IDiscoverySession

The IDiscoverySession type exposes the following members.

Methods

  Name Description
Public method CancelDiscoverUrl Use this method to cancel the discovery process. The process will be ignored, but the thread itself will not be destroyed.
Public method DiscoverUrl Returns a pointer to IDiscoveryResult.
Public method DiscoverUrlAsync Returns the discovery result after the file is downloaded.
Public method GetDiscoverError Retrieves the exception if NotifyDiscoverComplete method takes in cookie = nulla null reference (Nothing in Visual Basic).
Public method UpdateWebReference Discovers an XML Web service and then adds a reference to it.

Top

Remarks

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.

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace