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

'Declaration
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

  • pOwningObject
    Type: System.Object

    [in] The owning object (normally the buffer) for the 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

See Also

Reference

IVsSyntheticTextManager Interface

Microsoft.VisualStudio.TextManager.Interop Namespace