Compartilhar 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

'Declaration
Function CreateDiscoverySession ( _
    <OutAttribute> ByRef pSessionObject As IDiscoverySession _
) As Integer
int CreateDiscoverySession(
    out IDiscoverySession pSessionObject
)
int CreateDiscoverySession(
    [OutAttribute] IDiscoverySession^% pSessionObject
)
abstract CreateDiscoverySession : 
        pSessionObject:IDiscoverySession byref -> int
function CreateDiscoverySession(
    pSessionObject : IDiscoverySession
) : int

Parameters

Return Value

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

.NET Framework Security

See Also

Reference

IVsDiscoveryService Interface

Microsoft.VisualStudio.Shell.Interop Namespace