IVsRunningDocTableEvents.OnBeforeLastDocumentUnlock(UInt32, UInt32, UInt32, UInt32) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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
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
);