共用方式為


Workspace.Undo Method (array<ItemSpec[], Boolean, array<String[], array<String )

Undo the pending changes for the specified items. The items may contain wildcard characters.

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, _
    itemAttributeFilters As String(), _
    itemPropertyFilters As String() _
) As Integer
public int Undo(
    ItemSpec[] itemSpecs,
    bool updateDisk,
    string[] itemAttributeFilters,
    string[] itemPropertyFilters
)
public:
int Undo(
    array<ItemSpec^>^ itemSpecs, 
    bool updateDisk, 
    array<String^>^ itemAttributeFilters, 
    array<String^>^ itemPropertyFilters
)
member Undo : 
        itemSpecs:ItemSpec[] * 
        updateDisk:bool * 
        itemAttributeFilters:string[] * 
        itemPropertyFilters:string[] -> int
public function Undo(
    itemSpecs : ItemSpec[], 
    updateDisk : boolean, 
    itemAttributeFilters : String[], 
    itemPropertyFilters : String[]
) : int

Parameters

  • updateDisk
    Type: System.Boolean

    if true, update the items on disk for the undo; otherwise, the disk is not modified

  • itemAttributeFilters
    Type: array<System.String[]

    A list of versioned item properties to return with each get operation

  • itemPropertyFilters
    Type: array<System.String[]

    List of property items.

Return Value

Type: System.Int32
returns the number of undone changes

.NET Framework Security

See Also

Reference

Workspace Class

Undo Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace