次の方法で共有


WorkspaceCheckInParameters.NoConflictsCheckForGatedCheckin Property

This flag only affects the server's behavior when the server paths being checked in affect a gated build definition. In this case the server will ordinarily call CheckPendingChanges before shelving the workspace and throwing back a GatedCheckinException. If the call to CheckPendingChanges creates conflicts, then no GatedCheckinException will be thrown; instead CheckIn fails and informs the user that they must resolve their conflicts.

If this flag is specified, this call to CheckPendingChanges is skipped. This allows the gated checkin shelveset to be created even when the items being checked in are not at latest, for example. The build agent workspace will unshelve the shelveset and attempt to resolve conflicts at that time.

This is a liberalization of the default behavior. Therefore, the default value for this flag is false.

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

Syntax

'Declaration
Public Property NoConflictsCheckForGatedCheckin As Boolean
public bool NoConflictsCheckForGatedCheckin { get; set; }
public:
property bool NoConflictsCheckForGatedCheckin {
    bool get ();
    void set (bool value);
}
member NoConflictsCheckForGatedCheckin : bool with get, set
function get NoConflictsCheckForGatedCheckin () : boolean 
function set NoConflictsCheckForGatedCheckin (value : boolean)

Property Value

Type: System.Boolean
True if the call to CheckPendingChanges will be skipped; otherwise, false.

.NET Framework Security

See Also

Reference

WorkspaceCheckInParameters Class

Microsoft.TeamFoundation.VersionControl.Client Namespace