Método IVsRunningDocumentTable.NotifyOnBeforeSave (UInt32)

 

Publicado: abril de 2016

Acionado antes que um documento em que o RDT seja salvo.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (em Microsoft.VisualStudio.Shell.Interop.dll)

Sintaxe

int NotifyOnBeforeSave(
    uint dwCookie
)
int NotifyOnBeforeSave(
    unsigned int dwCookie
)
abstract NotifyOnBeforeSave : 
        dwCookie:uint32 -> int
Function NotifyOnBeforeSave (
    dwCookie As UInteger
) As Integer

Parâmetros

  • dwCookie
    [in] Valor abstrato que representa o documento que deve ser salvo.

Valor de retorno

Type: System.Int32

Se o método for bem-sucedido, ele retorna S_OK.Se ele falhar, ele retorna um código de erro.

Comentários

COM assinatura

De vsshell.idl:

HRESULT IVsRunningDocumentTable::NotifyOnBeforeSave(
   [in] VSCOOKIE dwCookie
);

O dwCookie parâmetro é o mesmo valor que é retornado de FindAndLockDocument ou RegisterAndLockDocument métodos.

Consulte também

Interface IVsRunningDocumentTable
Namespace Microsoft.VisualStudio.Shell.Interop

Retornar ao topo