IVsContainedLanguageHost.QueryEditFile Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines if the secondary buffer can be modified.
public:
int QueryEditFile();
public:
int QueryEditFile();
int QueryEditFile();
public int QueryEditFile ();
abstract member QueryEditFile : unit -> int
Public Function QueryEditFile () As Integer
Returns
If the buffer can be modified, returns S_OK; otherwise, returns BUFFER_E_SCC_READONLY.
Remarks
COM Signature
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.