Udostępnij za pośrednictwem


IVsSyntheticTextManager.CreateSyntheticTextSession Method

Definition

Creates the specified synthetic text session.

public:
 int CreateSyntheticTextSession(System::UInt32 dwFlags, System::Object ^ pOwningObject, Microsoft::VisualStudio::TextManager::Interop::IVsSyntheticTextClient ^ pClient, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsSyntheticTextSession ^ % ppState);
public:
 int CreateSyntheticTextSession(unsigned int dwFlags, Platform::Object ^ pOwningObject, Microsoft::VisualStudio::TextManager::Interop::IVsSyntheticTextClient ^ pClient, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsSyntheticTextSession ^ &  ppState);
int CreateSyntheticTextSession(unsigned int dwFlags, winrt::Windows::Foundation::IInspectable const & pOwningObject, Microsoft::VisualStudio::TextManager::Interop::IVsSyntheticTextClient const & pClient, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsSyntheticTextSession const & & ppState);
public int CreateSyntheticTextSession (uint dwFlags, object pOwningObject, Microsoft.VisualStudio.TextManager.Interop.IVsSyntheticTextClient pClient, out Microsoft.VisualStudio.TextManager.Interop.IVsSyntheticTextSession ppState);
abstract member CreateSyntheticTextSession : uint32 * obj * Microsoft.VisualStudio.TextManager.Interop.IVsSyntheticTextClient * IVsSyntheticTextSession -> int
Public Function CreateSyntheticTextSession (dwFlags As UInteger, pOwningObject As Object, pClient As IVsSyntheticTextClient, ByRef ppState As IVsSyntheticTextSession) As Integer

Parameters

dwFlags
UInt32

[in] Unused; must be zero

pOwningObject
Object

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

pClient
IVsSyntheticTextClient

[in] The client interface for the session.

ppState
IVsSyntheticTextSession

[out] The new session.

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::CreateSyntheticTextSession(  
   [in] DWORD dwFlags,  
   [in] IUnknown *pOwningObject,  
   [in] IVsSyntheticTextClient *pClient,  
   [out] IVsSyntheticTextSession **ppState  
);  

Applies to