Page 1 of 1

Refresh File Checkout status

Posted: Mon Jan 04, 2010 1:10 pm
by VinnyC
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

Re: Refresh File Checkout status

Posted: Mon Jan 04, 2010 4:21 pm
by jeremy_sg
You'll need to call Refresh() to update the list of checked out files.