Partager via


IDiscoverySession.DiscoverUrlAsync Method

Definition

Returns the discovery result after the file is downloaded.

public:
 int DiscoverUrlAsync(System::String ^ url, Microsoft::VisualStudio::Shell::Interop::IDiscoverUrlCallBack ^ pDiscoverUrlCallBack, [Runtime::InteropServices::Out] int % cookie);
int DiscoverUrlAsync(std::wstring const & url, Microsoft::VisualStudio::Shell::Interop::IDiscoverUrlCallBack const & pDiscoverUrlCallBack, [Runtime::InteropServices::Out] int & cookie);
public int DiscoverUrlAsync (string url, Microsoft.VisualStudio.Shell.Interop.IDiscoverUrlCallBack pDiscoverUrlCallBack, out int cookie);
abstract member DiscoverUrlAsync : string * Microsoft.VisualStudio.Shell.Interop.IDiscoverUrlCallBack * int -> int
Public Function DiscoverUrlAsync (url As String, pDiscoverUrlCallBack As IDiscoverUrlCallBack, ByRef cookie As Integer) As Integer

Parameters

url
String

[in] Specifies the URL for the discovery session.

pDiscoverUrlCallBack
IDiscoverUrlCallBack

[in] Pointer to IDiscoverUrlCallBack Interface. This interface returns S_OK when the discovery is complete.

cookie
Int32

[out] 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::DiscoverUrlAsync(  
   [in] BSTR url,  
   [in] IDiscoverUrlCallBack *pDiscoverUrlCallBack,  
   [out, retval] int *cookie  
);  

Applies to