Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Undo the pending changes for the specified items. The items may contain wildcards.
Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
'Declaration
Public Function Undo ( _
    itemSpecs As ItemSpec(), _
    updateDisk As Boolean, _
    deleteAdds As Boolean, _
    itemAttributeFilters As String(), _
    itemPropertyFilters As String() _
) As Integer
public int Undo(
    ItemSpec[] itemSpecs,
    bool updateDisk,
    bool deleteAdds,
    string[] itemAttributeFilters,
    string[] itemPropertyFilters
)
public:
int Undo(
    array<ItemSpec^>^ itemSpecs, 
    bool updateDisk, 
    bool deleteAdds, 
    array<String^>^ itemAttributeFilters, 
    array<String^>^ itemPropertyFilters
)
member Undo : 
        itemSpecs:ItemSpec[] * 
        updateDisk:bool * 
        deleteAdds:bool * 
        itemAttributeFilters:string[] * 
        itemPropertyFilters:string[] -> int
public function Undo(
    itemSpecs : ItemSpec[], 
    updateDisk : boolean, 
    deleteAdds : boolean, 
    itemAttributeFilters : String[], 
    itemPropertyFilters : String[]
) : int
Parameters
- itemSpecs 
 Type: array<Microsoft.TeamFoundation.VersionControl.Client.ItemSpec[]- the items for which to undo pending changes 
- updateDisk 
 Type: System.Boolean- if true, update the items on disk for the undo; otherwise, the disk is not modified 
- deleteAdds 
 Type: System.Boolean- determines if adds should be deleted. 
- itemAttributeFilters
 Type: array<System.String[]
- itemPropertyFilters
 Type: array<System.String[]
Return Value
Type: System.Int32
returns the number of undone changes
.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.