IDiscoverySession.CancelDiscoverUrl Method
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)
Syntax
'Declaration
Function CancelDiscoverUrl ( _
cookie As Integer _
) As Integer
int CancelDiscoverUrl(
int cookie
)
int CancelDiscoverUrl(
[InAttribute] int cookie
)
abstract CancelDiscoverUrl :
cookie:int -> int
function CancelDiscoverUrl(
cookie : int
) : int
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.
Remarks
COM Signature
From discoveryservice.idl:
HRESULT IDiscoverySession::CancelDiscoverUrl(
[in] int cookie
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.