共用方式為


TeamFoundationVersionControlService.QueryItems 方法 (TeamFoundationRequestContext, String, String, array<ItemSpec[], VersionSpec, DeletedState, ItemType, Boolean, Int32, array<String[], array<String[])

擷取符合指定之路徑和版本的所有項目清單儲存機制中。 如果「path 引數是檔案,則會傳回包含該檔案的一組項目。 如果" path "是資料夾,則會傳回該資料夾中所有項目的一組項目。 如果" path "中找不到包含萬用字元,則會傳回符合萬用字元的一組在指定的資料夾中的項目。

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

語法

'宣告
Public Function QueryItems ( _
    requestContext As TeamFoundationRequestContext, _
    workspaceName As String, _
    workspaceOwner As String, _
    items As ItemSpec(), _
    version As VersionSpec, _
    deletedState As DeletedState, _
    itemType As ItemType, _
    generateDownloadUrls As Boolean, _
    options As Integer, _
    itemPropertyFilters As String(), _
    itemAttributeFilters As String() _
) As TeamFoundationDataReader
public TeamFoundationDataReader QueryItems(
    TeamFoundationRequestContext requestContext,
    string workspaceName,
    string workspaceOwner,
    ItemSpec[] items,
    VersionSpec version,
    DeletedState deletedState,
    ItemType itemType,
    bool generateDownloadUrls,
    int options,
    string[] itemPropertyFilters,
    string[] itemAttributeFilters
)

參數

  • generateDownloadUrls
    型別:System.Boolean
    如果為 true,伺服器將會包含需要下載檔案的相關資訊。請設定這個屬性設定為 True,如果您下載使用物件傳回的檔案。這個呼叫將會更快速且需要較少頻寬,當參數是錯誤的 (未指定值) 的多載的預設值。

傳回值

型別:Microsoft.TeamFoundation.Framework.Server.TeamFoundationDataReader
含有結果的 TeamFoundationDataReader 以下列順序執行:如果有相符項目集合的 ItemSet [in] ItemSet 物件。

.NET Framework 安全性

請參閱

參考

TeamFoundationVersionControlService 類別

QueryItems 多載

Microsoft.TeamFoundation.VersionControl.Server 命名空間