Condividi tramite


IDiscoverySession.DiscoverUrl(String, IDiscoveryResult) Method

Definition

Returns a pointer to IDiscoveryResult.

public:
 int DiscoverUrl(System::String ^ pbstrURL, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IDiscoveryResult ^ % pIDiscoveryResult);
public:
 int DiscoverUrl(Platform::String ^ pbstrURL, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IDiscoveryResult ^ &  pIDiscoveryResult);
int DiscoverUrl(std::wstring const & pbstrURL, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IDiscoveryResult const & & pIDiscoveryResult);
public int DiscoverUrl (string pbstrURL, out Microsoft.VisualStudio.Shell.Interop.IDiscoveryResult pIDiscoveryResult);
abstract member DiscoverUrl : string * IDiscoveryResult -> int
Public Function DiscoverUrl (pbstrURL As String, ByRef pIDiscoveryResult As IDiscoveryResult) As Integer

Parameters

pbstrURL
String

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

pIDiscoveryResult
IDiscoveryResult

[out] Pointer to an IDiscoveryResult object.

Returns

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  
);  

Applies to