Share via


IVsSyntheticTextManager.GetSyntheticTextSession Method

Asks the owning object whether a synthetic text session currently exists.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'Declaration
Function GetSyntheticTextSession ( _
    pOwningObject As Object, _
    <OutAttribute> ByRef ppSession As IVsSyntheticTextSession _
) As Integer
int GetSyntheticTextSession(
    Object pOwningObject,
    out IVsSyntheticTextSession ppSession
)
int GetSyntheticTextSession(
    [InAttribute] Object^ pOwningObject, 
    [OutAttribute] IVsSyntheticTextSession^% ppSession
)
abstract GetSyntheticTextSession : 
        pOwningObject:Object * 
        ppSession:IVsSyntheticTextSession byref -> int
function GetSyntheticTextSession(
    pOwningObject : Object, 
    ppSession : IVsSyntheticTextSession
) : int

Parameters

  • pOwningObject
    Type: System.Object

    [in] The owning object (normally the buffer) of 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::GetSyntheticTextSession(
   [in] IUnknown *pOwningObject,
   [out] IVsSyntheticTextSession **ppSession
);

.NET Framework Security

See Also

Reference

IVsSyntheticTextManager Interface

Microsoft.VisualStudio.TextManager.Interop Namespace