IDiscoverySession::CancelDiscoverUrl Method (Int32)
Visual Studio 2015
Use this method to cancel the discovery process. The process will be ignored, but the thread itself will not be destroyed.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- cookie
-
Type:
System::Int32
[in] Specifies a cookie that identifies the discovery result.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From discoveryservice.idl:
HRESULT IDiscoverySession::CancelDiscoverUrl( [in] int cookie );
Show: