Partager via


IVsDiscoveryService.CreateDiscoverySession(IDiscoverySession) Method

Definition

Returns a pointer to a Discovery Session.

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

Parameters

pSessionObject
IDiscoverySession

[out] Pointer to a Discovery Session 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 IVsDiscoveryService::CreateDiscoverySession(  
   [out, retval] IDiscoverySession **pSessionObject  
);  

Applies to