VaultResponseItem and checkout

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
juliewt
Posts: 2
Joined: Tue Jun 13, 2006 3:51 pm

VaultResponseItem and checkout

Post by juliewt » Thu Oct 19, 2006 11:36 am

Using the Vault Client API (v3.1.9), I want to atomically check out a folder: if one of the files is unavailable, I want to rollback any successful checkouts.

I can use the ClientInstance.CheckOut method, passing it a folder, but it only returns VaultResponseItems. Those items are great for figuring out if anything failed, but I haven't found a way to tie back those responses to the items they're associated with.

Is this possible? Or do I need to abandon using CheckOut(folder) and iterate through the files myself?

Thanks,
JT

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Thu Oct 19, 2006 12:39 pm

Checkouts only apply to files. You'll have to iterate through a folder, and then create a list of checkout requests for each file.
Jeff Clausius
SourceGear

Post Reply