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
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context.
- workspaceName
Type: System.String
- workspaceOwner
Type: System.String
items
Type: array<Microsoft.TeamFoundation.VersionControl.Server.ItemSpec[]The item specifiers for the item(s) being listed, may be server or local.
version
Type: Microsoft.TeamFoundation.VersionControl.Server.VersionSpecThe version being listed.
deletedState
Type: Microsoft.TeamFoundation.VersionControl.Server.DeletedStateA flag representing whether to return deleted items, non-deleted items, or both.
itemType
Type: Microsoft.TeamFoundation.VersionControl.Server.ItemTypeA flag representing whether to return files, folders, or both.
generateDownloadUrls
Type: System.BooleanIf 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).
options
Type: System.Int32Additional behavior flags.
- itemPropertyFilters
Type: array<System.String[]
- itemAttributeFilters
Type: array<System.String[]
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.