Поделиться через


IVsInvisibleEditorManager Interface

Used to register an invisible editor.

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

Syntax

'Declaration
<InterfaceTypeAttribute()> _
<GuidAttribute("14439CDE-B6CF-4DD6-9615-67E8B3DF380D")> _
Public Interface IVsInvisibleEditorManager
[InterfaceTypeAttribute()]
[GuidAttribute("14439CDE-B6CF-4DD6-9615-67E8B3DF380D")]
public interface IVsInvisibleEditorManager
[InterfaceTypeAttribute()]
[GuidAttribute(L"14439CDE-B6CF-4DD6-9615-67E8B3DF380D")]
public interface class IVsInvisibleEditorManager
[<InterfaceTypeAttribute()>]
[<GuidAttribute("14439CDE-B6CF-4DD6-9615-67E8B3DF380D")>]
type IVsInvisibleEditorManager =  interface end
public interface IVsInvisibleEditorManager

The IVsInvisibleEditorManager type exposes the following members.

Methods

  Name Description
Public method RegisterInvisibleEditor Registers an invisible editor on the specified document.

Top

Remarks

Notes to Callers

Query service for this interface through SVsInvisibleEditorManager.

Examples

[C++]

CComPtr<IVsInvisibleEditorManager>  spIEM;
    HRESULT                             hr;

    // Register an invisible editor on the given file, saying 'yes' to caching
    // so that it gets loaded right away.
    if (FAILED (hr = CLangService::GetService()->QueryService (SID_SVsInvisibleEditorManager, IID_IVsInvisibleEditorManager, (void **)&spIEM)) ||
        FAILED (hr = CHash::AddNoCase (pszFileName, true /*fIsFileName*/, &m_pName)) ||
        FAILED (hr = spIEM->RegisterInvisibleEditor (pszFileName, NULL, RIEF_ENABLECACHING, NULL, &m_spEditor)))
    {
        return hr;
    }

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace