I need to know what the checkOutType values are.

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

Moderator: SourceGear

Post Reply
Balthazor
Posts: 81
Joined: Fri Mar 11, 2005 4:10 pm
Location: Hartford, Wisconsin

I need to know what the checkOutType values are.

Post by Balthazor » Fri Mar 11, 2005 4:17 pm

I'm working on an app using the Vault API, and I need to check out a file. The function asks for a byte value for checkOutType:

public VaultResponseItem[] CheckOut(
VaultClientFile file,
byte checkOutType,
string comment
);

I have no idea what value I need to pass in here, since they appear to not be listed anywhere in the documentation.

Thanks!

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

Post by jclausius » Fri Mar 11, 2005 4:36 pm

Try

VaultLib.VaultCheckOutType.CheckOut and VaultLib.VaultCheckOutType.Exclusive
Jeff Clausius
SourceGear

Balthazor
Posts: 81
Joined: Fri Mar 11, 2005 4:10 pm
Location: Hartford, Wisconsin

Post by Balthazor » Fri Mar 11, 2005 4:37 pm

jclausius wrote:Try

VaultLib.VaultCheckOutType.CheckOut and VaultLib.VaultCheckOutType.Exclusive
Cool, thanks a bunch!

Balthazor
Posts: 81
Joined: Fri Mar 11, 2005 4:10 pm
Location: Hartford, Wisconsin

Post by Balthazor » Fri Mar 11, 2005 4:54 pm

Now my next question is...how do I check a file back in? I see checkout, I see undocheckout, but I see nothing to check in.

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

Post by jclausius » Fri Mar 11, 2005 5:11 pm

You need to create a change set and pass it to the BeginTx(). If that succeeds, send the Commit request to EndTx().

If you're just getting started in Vault client API, you might find some good examples of how things work in the source code of the Command Line Client. I believe this can be found in the Vault Client API download.

HTH
Jeff Clausius
SourceGear

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

Post by jeremy_sg » Fri Mar 11, 2005 8:15 pm

You can also see some samples of Vault code at my blog at http://weblogs.asp.net/jeremy_sheeley

Post Reply