Bagikan melalui


Conflict Class

Represents a single conflict between two items.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.VersionControl.Client.Conflict

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

Syntax

'Declaration
Public NotInheritable Class Conflict
public sealed class Conflict
public ref class Conflict sealed
[<Sealed>]
type Conflict =  class end
public final class Conflict

The Conflict type exposes the following members.

Properties

  Name Description
Public property BaseChangeType Gets or sets the change type of the base file.
Public property BaseDeletionId Gets or sets the base deletion ID.
Public property BaseEncoding Gets or sets the base item encoding.
Public property BaseHashValue Gets or sets the base item hash value.
Public property BaseItemId Gets or sets the base item ID.
Public property BaseItemType Gets or sets the base item type.
Public property BaseServerItem Gets or sets the base server item.
Public property BaseVersion Gets or sets the base item version.
Public property CanMergeContent Gets a flag that describes whether this conflict would need a content merge.
Public property ConflictId Gets or sets the conflict ID.
Public property ContentMergeSummary Gets or sets the summary about the content merge.
Public property IsBaseless Gets a flag that describes whether this conflict is the result of a baseless merge.
Public property IsForced Gets or sets a flag that describes whether the conflict is forced.
Public property IsNamespaceConflict Gets or sets a flag that describes whether the namespace is in conflict.
Public property IsResolved Gets or sets a flag that describes whether the conflict is resolved.
Public property IsRollbackConflict Gets a flag that describes whether this conflict was caused by a rollback operation.
Public property MergedFileName Gets or sets the path of the merged file.
Public property Options Gets the options that are returned from the server that describe how the client should process this conflict.
Public property PendingChangeId Gets or sets the pending change ID.
Public property Reason Gets or sets the reason for the conflict.
Public property Resolution Gets or sets the resolution of the conflict.
Public property ResolutionOptions Gets or sets the options to control how the conflict is resolved.
Public property SourceLocalItem Gets or sets the source local item.
Public property Status Gets the status of the conflict.
Public property TargetLocalItem Gets or sets the target local item.
Public property TheirChangeType Gets the change type of their file.
Public property TheirDeletionId Gets or sets their item deletion ID.
Public property TheirEncoding Gets or sets their item encoding.
Public property TheirHashValue Gets or sets their item hash value.
Public property TheirItemId Gets or sets their item ID.
Public property TheirItemType Gets or sets their item type.
Public property TheirLastMergedVersion Gets or sets their last merged version.
Public property TheirServerItem Gets or sets their server item.
Public property TheirVersion Gets or sets the ID of their item version.
Public property TheirVersionFrom Gets or sets their version from.
Public property Type Gets or sets the conflict type.
Public property VersionControlServer Gets the repository that contains this conflict.
Public property YourChangeType Gets or sets the change type of your file.
Public property YourDeletionId Gets or sets your deletion ID.
Public property YourEncoding Gets or sets your server item encoding.
Public property YourItemId Gets or sets the ID of your item.
Public property YourItemType Gets or sets your item type.
Public property YourLastMergedVersion Gets or sets your last merged version.
Public property YourLocalChangeType Gets or sets the change type of your local file.
Public property YourServerItem Gets or sets your server item.
Public property YourServerItemSource Gets or sets the source of the server item.
Public property YourVersion Gets or sets the version of your item.

Top

Methods

  Name Description
Public method DownloadBaseFile Downloads the base file for this conflict.
Public method DownloadTheirFile Downloads the content for their file in the conflict. Throws an exception if no incoming file is available.
Public method DownloadYourFile Downloads the content for your file in the conflict. Throws an exception if no your file is available.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetBriefMessage Gets a brief message that describes this conflict. For a verbose message, use GetFullMessage().
Public method GetFullMessage Gets a verbose message that describes this conflict. For a brief message, use GetBriefMessage().
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Creates a user-readable string that summarizes the properties of this Conflict object. (Overrides Object.ToString().)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.TeamFoundation.VersionControl.Client Namespace