Delen 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

'Declaration
Function DiscoverUrl ( _
    pbstrURL As String, _
    <OutAttribute> ByRef pIDiscoveryResult As IDiscoveryResult _
) As Integer
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: String

    [in] Pointer to a string containing the URL of the file to be discovered.

Return Value

Type: 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

Microsoft.VisualStudio.Shell.Interop Namespace