IDiscoverySession::CancelDiscoverUrl Method (Int32)

 

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

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

int CancelDiscoverUrl(
	int cookie
)

Parameters

cookie
Type: System::Int32

[in] Specifies a cookie that identifies the discovery result.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From discoveryservice.idl:

HRESULT IDiscoverySession::CancelDiscoverUrl(
   [in] int cookie
);
Return to top
Show: