Workspace.PendEdit Method (array<String , RecursionType, String, LockLevel, Boolean, PendChangesOptions)

Checks out files for editing from the version-control repository.

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

Syntax

'Declaration
Public Function PendEdit ( _
    paths As String(), _
    recursion As RecursionType, _
    fileType As String, _
    lockLevel As LockLevel, _
    silent As Boolean, _
    options As PendChangesOptions _
) As Integer
public int PendEdit(
    string[] paths,
    RecursionType recursion,
    string fileType,
    LockLevel lockLevel,
    bool silent,
    PendChangesOptions options
)
public:
int PendEdit(
    array<String^>^ paths, 
    RecursionType recursion, 
    String^ fileType, 
    LockLevel lockLevel, 
    bool silent, 
    PendChangesOptions options
)
member PendEdit : 
        paths:string[] * 
        recursion:RecursionType * 
        fileType:string * 
        lockLevel:LockLevel * 
        silent:bool * 
        options:PendChangesOptions -> int
public function PendEdit(
    paths : String[], 
    recursion : RecursionType, 
    fileType : String, 
    lockLevel : LockLevel, 
    silent : boolean, 
    options : PendChangesOptions
) : int

Parameters

  • paths
    Type: array<System.String[]

    An array of paths of files to check out for editing.

  • silent
    Type: System.Boolean

    Specifies whether the server should return Get operations.

Return Value

Type: System.Int32
The number of files that were checked out.

Remarks

The options include the following flag:

GetLatestOnCheckout: Make a pending change to the most recent version of the item instead of the workspace version.

.NET Framework Security

See Also

Reference

Workspace Class

PendEdit Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace