VersionControlServer.GetItems 方法 (array<ItemSpec[], VersionSpec, DeletedState, ItemType, Boolean)

取得陣列中指定的路徑和版本儲存機制的 Item 物件。

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

語法

'宣告
Public Function GetItems ( _
    itemSpecs As ItemSpec(), _
    version As VersionSpec, _
    deletedState As DeletedState, _
    itemType As ItemType, _
    includeDownloadInfo As Boolean _
) As ItemSet()
public ItemSet[] GetItems(
    ItemSpec[] itemSpecs,
    VersionSpec version,
    DeletedState deletedState,
    ItemType itemType,
    bool includeDownloadInfo
)

參數

  • includeDownloadInfo
    類型:System.Boolean
    true 表示取得資訊需要下載檔案。指定 false 節省頻寬,如果不需要。

傳回值

類型:array<Microsoft.TeamFoundation.VersionControl.Client.ItemSet[]
比對路徑的項目。

備註

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

.NET Framework 安全性

請參閱

參考

VersionControlServer 類別

GetItems 多載

Microsoft.TeamFoundation.VersionControl.Client 命名空間