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
- 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
);
.NET Framework Security
- 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.