Compartilhar via


IDiscoveryResult.GetDiscoverySession(IDiscoverySession) Method

Definition

Returns a pointer to IDiscoverySession.

public:
 int GetDiscoverySession([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IDiscoverySession ^ % discoverySession);
public:
 int GetDiscoverySession([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IDiscoverySession ^ &  discoverySession);
int GetDiscoverySession([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IDiscoverySession const & & discoverySession);
public int GetDiscoverySession (out Microsoft.VisualStudio.Shell.Interop.IDiscoverySession discoverySession);
abstract member GetDiscoverySession : IDiscoverySession -> int
Public Function GetDiscoverySession (ByRef discoverySession As IDiscoverySession) As Integer

Parameters

discoverySession
IDiscoverySession

[out] Pointer to IDiscoverySession.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From discoveryservice.idl:

HRESULT IDiscoveryResult::GetDiscoverySession(  
   [out, retval] IDiscoverySession **discoverySession  
);  

Applies to