Partager via


IDiscoverySession Interface

Definition

Called by IVsAddWebReferenceDlg2 to discover XML Web services.

public interface class IDiscoverySession
public interface class IDiscoverySession
__interface IDiscoverySession
[System.Runtime.InteropServices.Guid("D622FE99-2087-4D78-8B49-7B46460475FD")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IDiscoverySession
[System.Runtime.InteropServices.Guid("D622FE99-2087-4D78-8B49-7B46460475FD")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IDiscoverySession
[<System.Runtime.InteropServices.Guid("D622FE99-2087-4D78-8B49-7B46460475FD")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IDiscoverySession = interface
[<System.Runtime.InteropServices.Guid("D622FE99-2087-4D78-8B49-7B46460475FD")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IDiscoverySession = interface
Public Interface IDiscoverySession
Attributes

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.

Methods

CancelDiscoverUrl(Int32)

Use this method to cancel the discovery process. The process will be ignored, but the thread itself will not be destroyed.

DiscoverUrl(String, IDiscoveryResult)

Returns a pointer to IDiscoveryResult.

DiscoverUrlAsync(String, IDiscoverUrlCallBack, Int32)

Returns the discovery result after the file is downloaded.

GetDiscoverError(Int32)

Retrieves the exception if NotifyDiscoverComplete(Int32, IDiscoveryResult) method takes in cookie = null.

UpdateWebReference(Object, String, String)

Discovers an XML Web service and then adds a reference to it.

Applies to