共用方式為


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

'宣告
Function CreateDiscoverySession ( _
    <OutAttribute> ByRef pSessionObject As IDiscoverySession _
) As Integer
'用途
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
)
abstract CreateDiscoverySession : 
        pSessionObject:IDiscoverySession byref -> int 
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
);

.NET Framework Security

See Also

Reference

IVsDiscoveryService Interface

IVsDiscoveryService Members

Microsoft.VisualStudio.Shell.Interop Namespace