Partilhar via


Método IVsContainedLanguageHost.QueryEditFile

Determina se o buffer secundário pode ser modificado.

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

Sintaxe

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

Valor de retorno

Tipo: Int32
Retorna se o buffer pode ser modificado, S_OK; Caso contrário, retornará BUFFER_E_SCC_READONLY.

Comentários

COM assinatura

De singlefileeditor.idl:

HRESULT QueryEditFile();

Este método é chamado pelo idioma contido quando uma alteração precisa ser feita para o buffer secundário. O editor geralmente não permite alterações se o arquivo de origem é bloqueado por alguma razão.

Segurança do .NET Framework

Consulte também

Referência

IVsContainedLanguageHost Interface

Namespace Microsoft.VisualStudio.TextManager.Interop