title: How do I get latest clearcase label programmatically from C#?
body: <p>I am trying to put version information to my C# GUI framework retrieved from the latest ClearCase label.  This was originally done from Visual Soursafe as below.  </p>
  
  <pre><code>vssDB = new VSSDatabaseClass();
  vssDB.Open( databaseName, "vssadmin", "vssadmin" );
  VSSItem item = vssDB.get_VSSItem( @"$\BuildDCP.bat", false );
  foreach(VSSVersion vssVersion in item.get_Versions(0))
  {
    // Pull the first non-blank label and use that
    if ( vssVersion.Label != "" )
    {
      labelID = vssVersion.Label.ToString();
      break;
    }
  }
  </code></pre>
  
  <p>I am trying to do something similar using ClearCase since we changed our source code control from VSS to CC.  Any help would be greatly appreciated.</p>
  
  <p>Thanks!</p>