Page 1 of 1

Sample for checkOut via API

Posted: Sat Aug 04, 2007 6:36 am
by sahaas
Hello,

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

thanks alot!

best regards

S. Haas

Posted: Sat Aug 04, 2007 1:37 pm
by lbauer
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);