Partager via


IDiscoverySession.DiscoverUrl Method

Returns a pointer to IDiscoveryResult.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Déclaration
Function DiscoverUrl ( _
    pbstrURL As String, _
    <OutAttribute> ByRef pIDiscoveryResult As IDiscoveryResult _
) As Integer
'Utilisation
Dim instance As IDiscoverySession
Dim pbstrURL As String
Dim pIDiscoveryResult As IDiscoveryResult
Dim returnValue As Integer

returnValue = instance.DiscoverUrl(pbstrURL, _
    pIDiscoveryResult)
int DiscoverUrl(
    string pbstrURL,
    out IDiscoveryResult pIDiscoveryResult
)
int DiscoverUrl(
    [InAttribute] String^ pbstrURL, 
    [OutAttribute] IDiscoveryResult^% pIDiscoveryResult
)
abstract DiscoverUrl : 
        pbstrURL:string * 
        pIDiscoveryResult:IDiscoveryResult byref -> int 
function DiscoverUrl(
    pbstrURL : String, 
    pIDiscoveryResult : IDiscoveryResult
) : int

Parameters

  • pbstrURL
    Type: System.String
    [in] Pointer to a string containing the URL of the file to be discovered.

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::DiscoverUrl(
   [in] BSTR pbstrUrl,
   [out, retval] IDiscoveryResult **pIDiscoveryResult
);

.NET Framework Security

See Also

Reference

IDiscoverySession Interface

IDiscoverySession Members

Microsoft.VisualStudio.Shell.Interop Namespace