VersionControlServer.GetItems 方法 (String, VersionSpec, RecursionType, DeletedState, ItemType, Boolean)

從儲存機制取得陣列符合指定之 path的 Item 物件。

命名空間:  Microsoft.TeamFoundation.VersionControl.Client
組件:  Microsoft.TeamFoundation.VersionControl.Client (在 Microsoft.TeamFoundation.VersionControl.Client.dll 中)

語法

'宣告
Public Function GetItems ( _
    path As String, _
    version As VersionSpec, _
    recursion As RecursionType, _
    deletedState As DeletedState, _
    itemType As ItemType, _
    includeDownloadInfo As Boolean _
) As ItemSet
public ItemSet GetItems(
    string path,
    VersionSpec version,
    RecursionType recursion,
    DeletedState deletedState,
    ItemType itemType,
    bool includeDownloadInfo
)

參數

  • path
    類型:System.String
    項目的路徑,可能是伺服器或區域。
  • includeDownloadInfo
    類型:System.Boolean
    true 表示取得資訊需要下載檔案。指定 false 節省頻寬,如果不需要。

傳回值

類型:Microsoft.TeamFoundation.VersionControl.Client.ItemSet
包含與 ItemSet 物件的 Item 物件的集合。

備註

True 只設定的 includeDownloadInfo ,如果要下載檔案使用傳回的物件。 呼叫會更快速且需要較少的頻寬,當 includeDownloadInfo 為 false (沒有指定它) 的多載的預設值。

.NET Framework 安全性

請參閱

參考

VersionControlServer 類別

GetItems 多載

Microsoft.TeamFoundation.VersionControl.Client 命名空間