Delen via


TeamFoundationFileContainerService.QueryItems Method (TeamFoundationRequestContext, Int64, String)

Queries items from a container. If the path points to a file or a string, returns that item. If the path point to a folder, returns the folder and its child items. If the path is not specified, returns all items of the container.

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

Syntax

'Declaration
Public Function QueryItems ( _
    requestContext As TeamFoundationRequestContext, _
    containerId As Long, _
    path As String _
) As List(Of FileContainerItem)
public List<FileContainerItem> QueryItems(
    TeamFoundationRequestContext requestContext,
    long containerId,
    string path
)
public:
List<FileContainerItem^>^ QueryItems(
    TeamFoundationRequestContext^ requestContext, 
    long long containerId, 
    String^ path
)
member QueryItems : 
        requestContext:TeamFoundationRequestContext * 
        containerId:int64 * 
        path:string -> List<FileContainerItem> 
public function QueryItems(
    requestContext : TeamFoundationRequestContext, 
    containerId : long, 
    path : String
) : List<FileContainerItem>

Parameters

  • path
    Type: System.String

    Path to the item. Null to query for all items.

Return Value

Type: System.Collections.Generic.List<FileContainerItem>
Items that match the query.

.NET Framework Security

See Also

Reference

TeamFoundationFileContainerService Class

QueryItems Overload

Microsoft.TeamFoundation.Framework.Server Namespace