IDiscoverySession::DiscoverUrlAsync Method (String^, IDiscoverUrlCallBack^, Int32)
Visual Studio 2015
Returns the discovery result after the file is downloaded.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int DiscoverUrlAsync( String^ url, IDiscoverUrlCallBack^ pDiscoverUrlCallBack, [OutAttribute] int% cookie )
Parameters
- url
-
Type:
System::String^
[in] Specifies the URL for the discovery session.
- pDiscoverUrlCallBack
-
Type:
Microsoft.VisualStudio.Shell.Interop::IDiscoverUrlCallBack^
[in] Pointer to IDiscoverUrlCallBack Interface. This interface returns S_OK when the discovery is complete.
- cookie
-
Type:
System::Int32
[out] 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::DiscoverUrlAsync( [in] BSTR url, [in] IDiscoverUrlCallBack *pDiscoverUrlCallBack, [out, retval] int *cookie );
Show: