Refresh File Checkout status

Post your questions regarding using the Vault and Fortress API in your programs.

Moderator: SourceGear

Post Reply
VinnyC
Posts: 5
Joined: Mon Jan 04, 2010 1:04 pm

Refresh File Checkout status

Post by VinnyC » Mon Jan 04, 2010 1:10 pm

Hello,

I am trying to check out files from a repository programmatically. If the file is checked out by another user, I pop-up a message and then loop to wait for the file to be checked in. I am finding that the IsCheckedOutByAnyone method does not seem to update unless I log out and log back in to the repository. Is this a known problem or is there another API call I should be using?

Thanks,

Vin

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Re: Refresh File Checkout status

Post by jeremy_sg » Mon Jan 04, 2010 4:21 pm

You'll need to call Refresh() to update the list of checked out files.
Subscribe to the Fortress/Vault blog

Post Reply