次の方法で共有


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

'宣言
Function CancelDiscoverUrl ( _
    cookie As Integer _
) As Integer
'使用
Dim instance As IDiscoverySession
Dim cookie As Integer
Dim returnValue As Integer

returnValue = instance.CancelDiscoverUrl(cookie)
int CancelDiscoverUrl(
    int cookie
)
int CancelDiscoverUrl(
    [InAttribute] int cookie
)
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
);

Permissions

See Also

Reference

IDiscoverySession Interface

IDiscoverySession Members

Microsoft.VisualStudio.Shell.Interop Namespace