Repository.CheckPendingChanges Method

Checks a set of pending changes for checkin conflicts.

This should be called as a preliminary check at the start of a checkin sequence.

Any conflicts that exist at the point in time when the call was made will be returned to the client en masse. Checkin will repeat the same checks and if any conflicts have crept in since this call was made, it will fail.

serverItems must contain at least one item and no wildcard characters.

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

Syntax

'Declaration
<WebMethodAttribute> _
Public Function CheckPendingChanges ( _
    workspaceName As String, _
    ownerName As String, _
    serverItems As String() _
) As List(Of Failure)
[WebMethodAttribute]
public List<Failure> CheckPendingChanges(
    string workspaceName,
    string ownerName,
    string[] serverItems
)
[WebMethodAttribute]
public:
List<Failure^>^ CheckPendingChanges(
    String^ workspaceName, 
    String^ ownerName, 
    array<String^>^ serverItems
)
[<WebMethodAttribute>]
member CheckPendingChanges : 
        workspaceName:string * 
        ownerName:string * 
        serverItems:string[] -> List<Failure> 
public function CheckPendingChanges(
    workspaceName : String, 
    ownerName : String, 
    serverItems : String[]
) : List<Failure>

Parameters

  • workspaceName
    Type: System.String

    Name of workspace that contains changes to submit.

  • serverItems
    Type: array<System.String[]

    List of items to check.

Return Value

Type: System.Collections.Generic.List<Failure>
Array of conflicts represented as Failure objects.

.NET Framework Security

See Also

Reference

Repository Class

Microsoft.TeamFoundation.VersionControl.Server Namespace