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
)
參數
- requestContext
型別:Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
要求內容。
- workspaceName
型別:System.String
- workspaceOwner
型別:System.String
- items
型別:array<Microsoft.TeamFoundation.VersionControl.Server.ItemSpec[]
是項目的項目規範列出,可能是伺服器或區域。
- version
型別:Microsoft.TeamFoundation.VersionControl.Server.VersionSpec
是的版本列出。
- deletedState
型別:Microsoft.TeamFoundation.VersionControl.Server.DeletedState
表示的旗標傳回是否刪除項目,非刪除項目或兩者。
- itemType
型別:Microsoft.TeamFoundation.VersionControl.Server.ItemType
表示的旗標是否傳回檔案,資料夾或兩者。
- generateDownloadUrls
型別:System.Boolean
如果為 true,伺服器將會包含需要下載檔案的相關資訊。請設定這個屬性設定為 True,如果您下載使用物件傳回的檔案。這個呼叫將會更快速且需要較少頻寬,當參數是錯誤的 (未指定值) 的多載的預設值。
- options
型別:System.Int32
其他行為的旗標。
- itemPropertyFilters
型別:array<System.String[]
- itemAttributeFilters
型別:array<System.String[]
傳回值
型別:Microsoft.TeamFoundation.Framework.Server.TeamFoundationDataReader
含有結果的 TeamFoundationDataReader 以下列順序執行:如果有相符項目集合的 ItemSet [in] ItemSet 物件。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。