Compartilhar via


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)

Syntax

'Declaração
Function QueryEditFile As Integer
int QueryEditFile()
int QueryEditFile()
abstract QueryEditFile : unit -> int 
function QueryEditFile() : int

Return Value

Type: System.Int32
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.

.NET Framework Security

See Also

Reference

IVsContainedLanguageHost Interface

Microsoft.VisualStudio.TextManager.Interop Namespace