Método IVsRunningDocTableEvents2.OnBeforeLastDocumentUnlock (UInt32, UInt32, UInt32, UInt32)

 

Chamado antes de liberar o último bloqueio do tipo especificado no documento especificado na tabela de documento em execução (RDT).

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

Sintaxe

int OnBeforeLastDocumentUnlock(
    uint docCookie,
    uint dwRDTLockType,
    uint dwReadLocksRemaining,
    uint dwEditLocksRemaining
)
int OnBeforeLastDocumentUnlock(
    unsigned int docCookie,
    unsigned int dwRDTLockType,
    unsigned int dwReadLocksRemaining,
    unsigned int dwEditLocksRemaining
)
abstract OnBeforeLastDocumentUnlock : 
        docCookie:uint32 *
        dwRDTLockType:uint32 *
        dwReadLocksRemaining:uint32 *
        dwEditLocksRemaining:uint32 -> int
Function OnBeforeLastDocumentUnlock (
    docCookie As UInteger,
    dwRDTLockType As UInteger,
    dwReadLocksRemaining As UInteger,
    dwEditLocksRemaining As UInteger
) As Integer

Parâmetros

  • docCookie
    [in] Valor abstrato que representa o documento cujos atributos foram alterados.
  • dwRDTLockType
    [in] Tipo de bloqueio sendo lançado.Valores são obtidas a partir do _VSRDTFLAGS enumeração.
  • dwReadLocksRemaining
    [in] Especifica o número de bloqueios de leitura restantes.
  • dwEditLocksRemaining
    [in] Especifica o número de bloqueios de editar restantes.

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.

Implementações

IVsRunningDocTableEvents.OnBeforeLastDocumentUnlock(UInt32, UInt32, UInt32, UInt32)

Comentários

Este método é chamado pouco antes da última leitura bloqueio será liberado no documento e antes do último editar o bloqueio seja liberado.

COM assinatura

De vsshell.idl:

HRESULT IVsRunningDocTableEvents2::OnBeforeLastDocumentUnlock(
   [in] VSCOOKIE docCookie,
   [in] VSRDTFLAGS dwRDTLockType,
   [in] DWORD dwReadLocksRemaining,
   [in] DWORD dwEditLocksRemaining
);

Consulte também

Interface IVsRunningDocTableEvents2
Namespace Microsoft.VisualStudio.Shell.Interop

Retornar ao topo