TeamFoundationVersionControlService.QueryItemsExtended 方法 (TeamFoundationRequestContext, String, String, array<ItemSpec[], DeletedState, ItemType, Int32, array<String[])
對於每一個輸入 ItemSpec,擷取符合指定準則的擴充項目的清單。
如果「path 引數是檔案,則會傳回包含該檔案的一組項目。 如果" path "是資料夾,則會傳回該資料夾中所有項目的一組項目。 如果" path "中找不到包含萬用字元,則會傳回符合萬用字元的一組在指定的資料夾中的項目。
命名空間: Microsoft.TeamFoundation.VersionControl.Server
組件: Microsoft.TeamFoundation.VersionControl.Server (在 Microsoft.TeamFoundation.VersionControl.Server.dll 中)
語法
'宣告
Public Function QueryItemsExtended ( _
requestContext As TeamFoundationRequestContext, _
workspaceName As String, _
workspaceOwner As String, _
items As ItemSpec(), _
deletedState As DeletedState, _
itemType As ItemType, _
options As Integer, _
itemPropertyFilters As String() _
) As TeamFoundationDataReader
public TeamFoundationDataReader QueryItemsExtended(
TeamFoundationRequestContext requestContext,
string workspaceName,
string workspaceOwner,
ItemSpec[] items,
DeletedState deletedState,
ItemType itemType,
int options,
string[] itemPropertyFilters
)
參數
- requestContext
型別:Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
要求內容。
- workspaceName
型別:System.String
工作區名稱,則為,如果位置對應所需的項目。可能是 Null。
- workspaceOwner
型別:System.String
工作區的擁有人。可能是 Null。
- items
型別:array<Microsoft.TeamFoundation.VersionControl.Server.ItemSpec[]
是項目的項目規範列出,可能是伺服器或區域。
- deletedState
型別:Microsoft.TeamFoundation.VersionControl.Server.DeletedState
表示的旗標傳回是否刪除項目,非刪除項目或兩者。
- itemType
型別:Microsoft.TeamFoundation.VersionControl.Server.ItemType
表示的旗標是否傳回檔案,資料夾或兩者。
- options
型別:System.Int32
選項。
- itemPropertyFilters
型別:array<System.String[]
在設計階段環境中顯示所傳回的中 ExtendedItem 物件 (無論這些物件是否存在。
傳回值
型別:Microsoft.TeamFoundation.Framework.Server.TeamFoundationDataReader
含有結果的 TeamFoundationDataReader 以下列順序執行:ExtendedItem [] - ExtendedItem 陣列,其中包含相符的 ExtendedItem 執行個體的每一個與每個指定的 ItemSpec。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。