Compartilhar via


IVsSyntheticTextManager.GetSyntheticTextSession Method

Definition

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

public:
 int GetSyntheticTextSession(System::Object ^ pOwningObject, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsSyntheticTextSession ^ % ppSession);
public:
 int GetSyntheticTextSession(Platform::Object ^ pOwningObject, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsSyntheticTextSession ^ &  ppSession);
int GetSyntheticTextSession(winrt::Windows::Foundation::IInspectable const & pOwningObject, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsSyntheticTextSession const & & ppSession);
public int GetSyntheticTextSession (object pOwningObject, out Microsoft.VisualStudio.TextManager.Interop.IVsSyntheticTextSession ppSession);
abstract member GetSyntheticTextSession : obj * IVsSyntheticTextSession -> int
Public Function GetSyntheticTextSession (pOwningObject As Object, ByRef ppSession As IVsSyntheticTextSession) As Integer

Parameters

pOwningObject
Object

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

ppSession
IVsSyntheticTextSession

[out] An existing IVsSyntheticTextSession.

Returns

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  
);  

Applies to