Condividi tramite


IVsHiddenTextManager.CreateHiddenTextSession Method

Creates a new hidden text session for a text buffer.

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

Syntax

'Dichiarazione
Function CreateHiddenTextSession ( _
    dwFlags As UInteger, _
    pOwningObject As Object, _
    pClient As IVsHiddenTextClient, _
    <OutAttribute> ByRef ppState As IVsHiddenTextSession _
) As Integer
int CreateHiddenTextSession(
    uint dwFlags,
    Object pOwningObject,
    IVsHiddenTextClient pClient,
    out IVsHiddenTextSession ppState
)
int CreateHiddenTextSession(
    [InAttribute] unsigned int dwFlags, 
    [InAttribute] Object^ pOwningObject, 
    [InAttribute] IVsHiddenTextClient^ pClient, 
    [OutAttribute] IVsHiddenTextSession^% ppState
)
abstract CreateHiddenTextSession : 
        dwFlags:uint32 * 
        pOwningObject:Object * 
        pClient:IVsHiddenTextClient * 
        ppState:IVsHiddenTextSession byref -> int 
function CreateHiddenTextSession(
    dwFlags : uint, 
    pOwningObject : Object, 
    pClient : IVsHiddenTextClient, 
    ppState : IVsHiddenTextSession
) : int

Parameters

  • dwFlags
    Type: System.UInt32
    [in] This value is reserved for future use.
  • 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::CreateHiddenTextSession
   ([in] DWORD dwFlags, 
   [in] IUnknown *pOwningObject, 
   [in] IVsHiddenTextClient *pClient, 
   [out] IVsHiddenTextSession **ppState
);

If a hidden text session already exists in a buffer (that is, a call to GetHiddenTextSession is non-null, then you cannot specify a hidden text client (IVsHiddenTextManager) to inform you of user actions on the hidden text region.

.NET Framework Security

See Also

Reference

IVsHiddenTextManager Interface

Microsoft.VisualStudio.TextManager.Interop Namespace