IDiscoverySession.DiscoverUrlAsync Method
Returns the discovery result after the file is downloaded.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Déclaration
Function DiscoverUrlAsync ( _
url As String, _
pDiscoverUrlCallBack As IDiscoverUrlCallBack, _
<OutAttribute> ByRef cookie As Integer _
) As Integer
'Utilisation
Dim instance As IDiscoverySession
Dim url As String
Dim pDiscoverUrlCallBack As IDiscoverUrlCallBack
Dim cookie As Integer
Dim returnValue As Integer
returnValue = instance.DiscoverUrlAsync(url, _
pDiscoverUrlCallBack, cookie)
int DiscoverUrlAsync(
string url,
IDiscoverUrlCallBack pDiscoverUrlCallBack,
out int cookie
)
int DiscoverUrlAsync(
[InAttribute] String^ url,
[InAttribute] IDiscoverUrlCallBack^ pDiscoverUrlCallBack,
[OutAttribute] int% cookie
)
abstract DiscoverUrlAsync :
url:string *
pDiscoverUrlCallBack:IDiscoverUrlCallBack *
cookie:int byref -> int
function DiscoverUrlAsync(
url : String,
pDiscoverUrlCallBack : IDiscoverUrlCallBack,
cookie : int
) : int
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.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::DiscoverUrlAsync(
[in] BSTR url,
[in] IDiscoverUrlCallBack *pDiscoverUrlCallBack,
[out, retval] 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.