I\'m working on a utility processing files being under source control using TFS 2010.
If an item is not yet checked-out for edit, I\'m getting an exception, what is
You can use Team Foundation Version Control client API. The method is PendEdit()
workspace.PendEdit(fileName);
Checkout detailed example on MSDN http://blogs.msdn.com/b/buckh/archive/2006/03/15/552288.aspx