IDiscoverySession.DiscoverUrl Method

Returns a pointer to IDiscoveryResult.

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


Function DiscoverUrl ( _
    pbstrURL As String, _
    <OutAttribute> ByRef pIDiscoveryResult As IDiscoveryResult _
) As Integer
‘사용 방법
Dim instance As IDiscoverySession
Dim pbstrURL As String
Dim pIDiscoveryResult As IDiscoveryResult
Dim returnValue As Integer

returnValue = instance.DiscoverUrl(pbstrURL, _
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


  • 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.


COM Signature

From discoveryservice.idl:

HRESULT IDiscoverySession::DiscoverUrl(
   [in] BSTR pbstrUrl,
   [out, retval] IDiscoveryResult **pIDiscoveryResult

.NET Framework Security

See Also


IDiscoverySession Interface

IDiscoverySession Members

Microsoft.VisualStudio.Shell.Interop Namespace