IDiscoverySession.CancelDiscoverUrl(Int32) Method

Definition

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

public:
 int CancelDiscoverUrl(int cookie);
public:
 int CancelDiscoverUrl(int cookie);
int CancelDiscoverUrl(int cookie);
public int CancelDiscoverUrl (int cookie);
abstract member CancelDiscoverUrl : int -> int
Public Function CancelDiscoverUrl (cookie As Integer) As Integer

Parameters

cookie
Int32

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

Returns

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

Remarks

COM Signature

From discoveryservice.idl:

HRESULT IDiscoverySession::CancelDiscoverUrl(  
   [in] int cookie  
);  

Applies to