Share via


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

Retrieves a list of all items in the repository that match the specified path and version. If the 'path' argument is a file, returns a set of items that contain just that file. If the 'path' is a folder, returns a set of items that contain all items in that folder. If the 'path' contains a wildcard character, returns a set of items in the specified folder that match the wildcard.

Namespace:  Microsoft.TeamFoundation.VersionControl.Server
Assembly:  Microsoft.TeamFoundation.VersionControl.Server (in Microsoft.TeamFoundation.VersionControl.Server.dll)

Syntax

'Declaration
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
)
public:
TeamFoundationDataReader^ QueryItems(
    TeamFoundationRequestContext^ requestContext, 
    String^ workspaceName, 
    String^ workspaceOwner, 
    array<ItemSpec^>^ items, 
    VersionSpec^ version, 
    DeletedState deletedState, 
    ItemType itemType, 
    bool generateDownloadUrls, 
    int options, 
    array<String^>^ itemPropertyFilters, 
    array<String^>^ itemAttributeFilters
)
member QueryItems : 
        requestContext:TeamFoundationRequestContext * 
        workspaceName:string * 
        workspaceOwner:string * 
        items:ItemSpec[] * 
        version:VersionSpec * 
        deletedState:DeletedState * 
        itemType:ItemType * 
        generateDownloadUrls:bool * 
        options:int * 
        itemPropertyFilters:string[] * 
        itemAttributeFilters:string[] -> TeamFoundationDataReader
public function QueryItems(
    requestContext : TeamFoundationRequestContext, 
    workspaceName : String, 
    workspaceOwner : String, 
    items : ItemSpec[], 
    version : VersionSpec, 
    deletedState : DeletedState, 
    itemType : ItemType, 
    generateDownloadUrls : boolean, 
    options : int, 
    itemPropertyFilters : String[], 
    itemAttributeFilters : String[]
) : TeamFoundationDataReader

Parameters

  • generateDownloadUrls
    Type: System.Boolean

    If true, the server will include the information that is required to download files. Only set this to true if you will be downloading the files that use the objects that are returned. The call will be faster and require less bandwidth when this parameter is false (default for overloads that do not specify it).

Return Value

Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationDataReader
TeamFoundationDataReader with results in the following order: ItemSet[] - ItemSet objects that contain collections of matching Items.

.NET Framework Security

See Also

Reference

TeamFoundationVersionControlService Class

QueryItems Overload

Microsoft.TeamFoundation.VersionControl.Server Namespace