Delen via


RepositoryExtensions.UndoPendingChanges Method

Undoes a set of pending changes.

If a serverItem spec does not match anything, a Failure object is returned for it.

This method returns an array of pending changes that were undone. For each file, the client should call DownloadFile() and specify the version returned in the UndonePendingChange object to retrieve the unmodified versions of the files.

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

Syntax

'Declaration
<WebMethodAttribute> _
Public Function UndoPendingChanges ( _
    workspaceName As String, _
    ownerName As String, _
    items As ItemSpec(), _
    <OutAttribute> ByRef failures As List(Of Failure), _
    propertyNameFilters As String(), _
    <OutAttribute> ByRef changePendedFlags As Integer _
) As StreamingCollection(Of GetOperation)
[WebMethodAttribute]
public StreamingCollection<GetOperation> UndoPendingChanges(
    string workspaceName,
    string ownerName,
    ItemSpec[] items,
    out List<Failure> failures,
    string[] propertyNameFilters,
    out int changePendedFlags
)
[WebMethodAttribute]
public:
StreamingCollection<GetOperation^>^ UndoPendingChanges(
    String^ workspaceName, 
    String^ ownerName, 
    array<ItemSpec^>^ items, 
    [OutAttribute] List<Failure^>^% failures, 
    array<String^>^ propertyNameFilters, 
    [OutAttribute] int% changePendedFlags
)
[<WebMethodAttribute>]
member UndoPendingChanges : 
        workspaceName:string * 
        ownerName:string * 
        items:ItemSpec[] * 
        failures:List<Failure> byref * 
        propertyNameFilters:string[] * 
        changePendedFlags:int byref -> StreamingCollection<GetOperation> 
public function UndoPendingChanges(
    workspaceName : String, 
    ownerName : String, 
    items : ItemSpec[], 
    failures : List<Failure>, 
    propertyNameFilters : String[], 
    changePendedFlags : int
) : StreamingCollection<GetOperation>

Parameters

  • workspaceName
    Type: System.String

    Workspace to revert pending changes from.

  • ownerName
    Type: System.String

    Owner of workspace (including domain).

  • propertyNameFilters
    Type: array<System.String[]

    List of properties to return with get operations.

Return Value

Type: Microsoft.TeamFoundation.Framework.Server.StreamingCollection<GetOperation>
Array of get operations that must be applied to the client to end up in sync.

.NET Framework Security

See Also

Reference

RepositoryExtensions Class

Microsoft.TeamFoundation.VersionControl.Server Namespace