RepositoryExtensions.QueryPendingChangesForWorkspace Method

Returns a list of pending changes matching specified criteria.

These results are limited by the value passed in for page size. The value of lastChange specifies where to begin paging from, or null for the first page.

Children are returned according to the recursive option. If RecursionType.None is specified, only the serverItem is returned. If RecursionType.OneLevel is specified and serverItem represents a folder, that folder and its direct children are returned. If RecursionType.Full is specified and serverItem is a folder all its descendants are returned.

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

Syntax

'Declaration
<WebMethodAttribute> _
Public Function QueryPendingChangesForWorkspace ( _
    workspaceName As String, _
    workspaceOwner As String, _
    itemSpecs As ItemSpec(), _
    generateDownloadUrls As Boolean, _
    pageSize As Integer, _
    lastChange As String, _
    includeMergeInfo As Boolean, _
    <OutAttribute> ByRef failures As StreamingCollection(Of Failure) _
) As StreamingCollection(Of PendingChange)
[WebMethodAttribute]
public StreamingCollection<PendingChange> QueryPendingChangesForWorkspace(
    string workspaceName,
    string workspaceOwner,
    ItemSpec[] itemSpecs,
    bool generateDownloadUrls,
    int pageSize,
    string lastChange,
    bool includeMergeInfo,
    out StreamingCollection<Failure> failures
)
[WebMethodAttribute]
public:
StreamingCollection<PendingChange^>^ QueryPendingChangesForWorkspace(
    String^ workspaceName, 
    String^ workspaceOwner, 
    array<ItemSpec^>^ itemSpecs, 
    bool generateDownloadUrls, 
    int pageSize, 
    String^ lastChange, 
    bool includeMergeInfo, 
    [OutAttribute] StreamingCollection<Failure^>^% failures
)
[<WebMethodAttribute>]
member QueryPendingChangesForWorkspace : 
        workspaceName:string * 
        workspaceOwner:string * 
        itemSpecs:ItemSpec[] * 
        generateDownloadUrls:bool * 
        pageSize:int * 
        lastChange:string * 
        includeMergeInfo:bool * 
        failures:StreamingCollection<Failure> byref -> StreamingCollection<PendingChange> 
public function QueryPendingChangesForWorkspace(
    workspaceName : String, 
    workspaceOwner : String, 
    itemSpecs : ItemSpec[], 
    generateDownloadUrls : boolean, 
    pageSize : int, 
    lastChange : String, 
    includeMergeInfo : boolean, 
    failures : StreamingCollection<Failure>
) : StreamingCollection<PendingChange>

Parameters

  • generateDownloadUrls
    Type: System.Boolean

    Whether to generate download URLs for files.

  • pageSize
    Type: System.Int32

    The number of items to return to the client.

  • lastChange
    Type: System.String

    The last change received by the client.

  • includeMergeInfo
    Type: System.Boolean

    Whether to include source merge information.

Return Value

Type: Microsoft.TeamFoundation.Framework.Server.StreamingCollection<PendingChange>
Array of PendingChange objects for the workspace, matching the itemspecs.

.NET Framework Security

See Also

Reference

RepositoryExtensions Class

Microsoft.TeamFoundation.VersionControl.Server Namespace