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
pSessionObject
Type: Microsoft.VisualStudio.Shell.Interop.IDiscoverySession%[out] Pointer to a Discovery Session object.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.