VcsAfterUnlock
Return to Introduction  Previous page  Next page
If this method is exported from the DLL, it will be called after an Unlock occurs. Note that this event occurs as a result of the user using the Unlock commands and is not triggered after a CheckIn action.

VcsAfterUnlock

procedure VcsAfterUnlock( pProject, pFolder, pObjectName, pUserName, pRevision: PChar;   
                          TimeStamp: Integer; UserID, FileID: Cardinal ); stdcall; export;  

This procedure is called after an Unlock action occurs. This is a notification event only and none of the values passed in can be modified.

Parameters

Name
Description
pProject
The name of the Project containing the file
pFolder
The name of the Folder containing the file
pObjectName
The name of the file object that was Unlocked
pUserName
The name of the user that carried out the action
pRevision
The name of the revision being unlocked
Timestamp
The date/time of the revision being unlocked
UserID
The ID of the user that carried out the action.
FileID
The ID of the file that was unlocked



Example (Delphi)

The following method is called after a file is unlocked and simply logs the action to a local text file:

procedure VcsAfterUnlock( pProject, pFolder, pObjectName, pUserName, pRevision: PChar;   
                          TimeStamp: Integer; UserID, FileID: Cardinal );  
begin  
  // This method is called after a successful Lock. This does not include files unlocked during Check In.  
  LogIt( Format( '%s - ''%s'' Unlocked revision ''%s'' of ''%s''',   
                 [ DateTimeToStr( FileDateToDateTime( TimeStamp ) ),   
                 String( pUserName ), String( pRevision ),   
                 String( pObjectName ) ] ) );  
end;  
 

 


© 1995-2018 MCN Software