IVsSyntheticTextManager.GetSyntheticTextSession 方法

需要拥有的对象复合文本会话当前是否存在。

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

语法

声明
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

参数

  • pOwningObject
    类型:Object

    [in] 拥有的对象 (通常是缓冲区)

返回值

类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 textmgr.idl:

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

.NET Framework 安全性

请参阅

参考

IVsSyntheticTextManager 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间