Repository5.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(), _
itemPropertyFilters As String(), _
itemAttributeFilters As String(), _
maxClientPathLength As Integer, _
<OutAttribute> ByRef failures As List(Of Failure), _
<OutAttribute> ByRef changePendedFlags As Integer _
) As StreamingCollection(Of GetOperation)
[WebMethodAttribute]
public StreamingCollection<GetOperation> UndoPendingChanges(
string workspaceName,
string ownerName,
ItemSpec[] items,
string[] itemPropertyFilters,
string[] itemAttributeFilters,
int maxClientPathLength,
out List<Failure> failures,
out int changePendedFlags
)
[WebMethodAttribute]
public:
StreamingCollection<GetOperation^>^ UndoPendingChanges(
String^ workspaceName,
String^ ownerName,
array<ItemSpec^>^ items,
array<String^>^ itemPropertyFilters,
array<String^>^ itemAttributeFilters,
int maxClientPathLength,
[OutAttribute] List<Failure^>^% failures,
[OutAttribute] int% changePendedFlags
)
[<WebMethodAttribute>]
member UndoPendingChanges :
workspaceName:string *
ownerName:string *
items:ItemSpec[] *
itemPropertyFilters:string[] *
itemAttributeFilters:string[] *
maxClientPathLength:int *
failures:List<Failure> byref *
changePendedFlags:int byref -> StreamingCollection<GetOperation>
public function UndoPendingChanges(
workspaceName : String,
ownerName : String,
items : ItemSpec[],
itemPropertyFilters : String[],
itemAttributeFilters : String[],
maxClientPathLength : int,
failures : List<Failure>,
changePendedFlags : int
) : StreamingCollection<GetOperation>
Parameters
workspaceName
Type: System.StringWorkspace to revert pending changes from.
ownerName
Type: System.StringOwner of workspace (including domain).
items
Type: array<Microsoft.TeamFoundation.VersionControl.Server.ItemSpec[]Array of items to revert.
- itemPropertyFilters
Type: array<System.String[]
itemAttributeFilters
Type: array<System.String[]List of properties to return with get operations.
maxClientPathLength
Type: System.Int32The maximum client supported server path length.
failures
Type: System.Collections.Generic.List<Failure>%Failure objects for items that could not be undone.
- changePendedFlags
Type: System.Int32%
Return Value
Type: Microsoft.TeamFoundation.Framework.Server.StreamingCollection<GetOperation>
Array of get operations that need to be applied to the client to get in sync.
.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.