IVsContainedLanguageHost::QueryEditFile Method ()

 

Determines if the secondary buffer can be modified.

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

int QueryEditFile()

Return Value

Type: System::Int32

If the buffer can be modified, returns S_OK; otherwise, returns BUFFER_E_SCC_READONLY.

From singlefileeditor.idl:

HRESULT QueryEditFile();

This method is called by the contained language when a change needs to be made to the secondary buffer. The editor typically does not allow changes if the source file is locked for some reason.

Return to top
Show: