Partager via


IVsDiscoveryService.CreateDiscoverySession Method

Returns a pointer to a Discovery Session.

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

Syntax

'Déclaration
Function CreateDiscoverySession ( _
    <OutAttribute> ByRef pSessionObject As IDiscoverySession _
) As Integer
'Utilisation
Dim instance As IVsDiscoveryService
Dim pSessionObject As IDiscoverySession
Dim returnValue As Integer

returnValue = instance.CreateDiscoverySession(pSessionObject)
int CreateDiscoverySession(
    out IDiscoverySession pSessionObject
)
int CreateDiscoverySession(
    [OutAttribute] IDiscoverySession^% pSessionObject
)
function CreateDiscoverySession(
    pSessionObject : IDiscoverySession
) : int

Parameters

Return Value

Type: System.Int32

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

Permissions

See Also

Reference

IVsDiscoveryService Interface

IVsDiscoveryService Members

Microsoft.VisualStudio.Shell.Interop Namespace