2013-09-27 51 views

回答

3

查詢返回1結果的路徑中的所有更改,從最低變更集開始。 http://msdn.microsoft.com/en-us/library/ff736442(v=vs.100).aspx

versionControlService.QueryHistory(
      path, 
      VersionSpec.Latest, 
      0, 
      RecursionType.Full, //look into all subfolders 
      null, 
      null, //version from - first 
      null, //version to - latest => all 
      1, //Return at maximum 1 item 
      boolIncludeChanges, // Include information on changes done 
      false, 
      boolIncludeDLInfo, 
      true //sort ascending - C1, C2, .. CLatest 
) 
+0

這會返回從最早的所有變更集?我只想讓那個單一的最早的變更集返回。 –

+1

不要緊......「1,//最多返回1件商品」 –