IVsRunningDocTableEvents.OnBeforeLastDocumentUnlock(UInt32, UInt32, UInt32, UInt32) Méthode

Définition

Appelé avant de libérer le dernier verrou du type spécifié sur le document spécifié dans la table de document en cours d'exécution (RDT).

public:
 int OnBeforeLastDocumentUnlock(System::UInt32 docCookie, System::UInt32 dwRDTLockType, System::UInt32 dwReadLocksRemaining, System::UInt32 dwEditLocksRemaining);
public:
 int OnBeforeLastDocumentUnlock(unsigned int docCookie, unsigned int dwRDTLockType, unsigned int dwReadLocksRemaining, unsigned int dwEditLocksRemaining);
int OnBeforeLastDocumentUnlock(unsigned int docCookie, unsigned int dwRDTLockType, unsigned int dwReadLocksRemaining, unsigned int dwEditLocksRemaining);
public int OnBeforeLastDocumentUnlock (uint docCookie, uint dwRDTLockType, uint dwReadLocksRemaining, uint dwEditLocksRemaining);
abstract member OnBeforeLastDocumentUnlock : uint32 * uint32 * uint32 * uint32 -> int
Public Function OnBeforeLastDocumentUnlock (docCookie As UInteger, dwRDTLockType As UInteger, dwReadLocksRemaining As UInteger, dwEditLocksRemaining As UInteger) As Integer

Paramètres

docCookie
UInt32

[in] Valeur abstraite qui représente le document dont le dernier verrouillage est sur le point d'être supprimé.

dwRDTLockType
UInt32

[in] Type de verrou qui est libéré. Les valeurs proviennent de l'énumération _VSRDTFLAGS.

dwReadLocksRemaining
UInt32

[in] Nombre de verrous de lecture restants.

dwEditLocksRemaining
UInt32

[in] Nombre de verrous de modification restants.

Retours

Int32

Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.

Remarques

Cette méthode est appelée juste avant que le dernier verrou de lecture soit relâché sur le document et juste avant la libération du dernier verrou de modification.

Signature COM

À partir de vsshell. idl :

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

S’applique à