다음을 통해 공유


IVsContainedLanguageHost.QueryEditFile Method

Definition

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.

Applies to