IVsSyntheticTextManager::GetSyntheticTextSession Method (Object^, IVsSyntheticTextSession^)

 

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)

int GetSyntheticTextSession(
	Object^ pOwningObject,
	[OutAttribute] IVsSyntheticTextSession^% ppSession
)

Parameters

pOwningObject
Type: System::Object^

[in] The owning object (normally the buffer) of the session.

ppSession
Type: Microsoft.VisualStudio.TextManager.Interop::IVsSyntheticTextSession^

[out] An existing IVsSyntheticTextSession.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From textmgr.idl:

HRESULT IVsSyntheticTextManager::GetSyntheticTextSession(
   [in] IUnknown *pOwningObject,
   [out] IVsSyntheticTextSession **ppSession
);
Return to top
Show: