IVsSyntheticTextManager.CreateSyntheticTextSession Method
Creates the specified synthetic text session.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'Declaração
Function CreateSyntheticTextSession ( _
dwFlags As UInteger, _
pOwningObject As Object, _
pClient As IVsSyntheticTextClient, _
<OutAttribute> ByRef ppState As IVsSyntheticTextSession _
) As Integer
int CreateSyntheticTextSession(
uint dwFlags,
Object pOwningObject,
IVsSyntheticTextClient pClient,
out IVsSyntheticTextSession ppState
)
int CreateSyntheticTextSession(
[InAttribute] unsigned int dwFlags,
[InAttribute] Object^ pOwningObject,
[InAttribute] IVsSyntheticTextClient^ pClient,
[OutAttribute] IVsSyntheticTextSession^% ppState
)
abstract CreateSyntheticTextSession :
dwFlags:uint32 *
pOwningObject:Object *
pClient:IVsSyntheticTextClient *
ppState:IVsSyntheticTextSession byref -> int
function CreateSyntheticTextSession(
dwFlags : uint,
pOwningObject : Object,
pClient : IVsSyntheticTextClient,
ppState : IVsSyntheticTextSession
) : int
Parameters
- dwFlags
Type: System.UInt32
[in] Unused; must be zero
- pOwningObject
Type: System.Object
[in] The owning object (normally the buffer) for the session.
- pClient
Type: Microsoft.VisualStudio.TextManager.Interop.IVsSyntheticTextClient
[in] The client interface for the session.
- ppState
Type: Microsoft.VisualStudio.TextManager.Interop.IVsSyntheticTextSession%
[out] The new session.
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 textmgr.idl:
HRESULT IVsSyntheticTextManager::CreateSyntheticTextSession(
[in] DWORD dwFlags,
[in] IUnknown *pOwningObject,
[in] IVsSyntheticTextClient *pClient,
[out] IVsSyntheticTextSession **ppState
);
.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.