다음을 통해 공유


IVsHiddenTextManager.GetHiddenTextSession Method

Returns the current hidden text session for the specified text buffer, if one exists.

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

Syntax

‘선언
Function GetHiddenTextSession ( _
    pOwningObject As Object, _
    <OutAttribute> ByRef ppSession As IVsHiddenTextSession _
) As Integer
‘사용 방법
Dim instance As IVsHiddenTextManager
Dim pOwningObject As Object
Dim ppSession As IVsHiddenTextSession
Dim returnValue As Integer

returnValue = instance.GetHiddenTextSession(pOwningObject, _
    ppSession)
int GetHiddenTextSession(
    Object pOwningObject,
    out IVsHiddenTextSession ppSession
)
int GetHiddenTextSession(
    [InAttribute] Object^ pOwningObject, 
    [OutAttribute] IVsHiddenTextSession^% ppSession
)
abstract GetHiddenTextSession : 
        pOwningObject:Object * 
        ppSession:IVsHiddenTextSession byref -> int 
function GetHiddenTextSession(
    pOwningObject : Object, 
    ppSession : IVsHiddenTextSession
) : int

Parameters

  • pOwningObject
    Type: System.Object
    [in] Text buffer containing the outlining or hidden text 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 IVsHiddenTextManager::GetHiddenTextSession(
   [in] IUnknown *pOwningObject, 
   [out] IVsHiddenTextSession **ppSession
); 

If this method returns nulla null reference (Nothing in Visual Basic), then no other hidden text sessions exist for the specified buffer. In this case, call CreateHiddenTextSession to create a hidden text session for the buffer. Use the methods of IVsHiddenTextSession to add hidden text regions to the buffer.

.NET Framework Security

See Also

Reference

IVsHiddenTextManager Interface

IVsHiddenTextManager Members

Microsoft.VisualStudio.TextManager.Interop Namespace