Sample for checkOut via API

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

Moderator: SourceGear

Post Reply
sahaas
Posts: 4
Joined: Sat Aug 04, 2007 6:29 am

Sample for checkOut via API

Post by sahaas » Sat Aug 04, 2007 6:36 am

Hello,

im locking for a Example how I can check out some files via API (V.3)!

thanks alot!

best regards

S. Haas

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Sat Aug 04, 2007 1:37 pm

This sample command, plus others are at this link:
http://support.sourcegear.com/viewtopic.php?t=8020


// Exclusively check out a file.
getOptions = new GetOptions();
string filePath = "$/path/to/a/file";
bool bExclusive = true;
bool bGetLatest = true;
ServerOperations.ProcessCommandCheckout(new string[] { filePath }, bExclusive, bGetLatest, getOptions);
Linda Bauer
SourceGear
Technical Support Manager

Post Reply