Partager via


ItemIdentifier Class

Represents a unique identifier for an item.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.VersionControl.Client.ItemIdentifier

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

Syntax

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

The ItemIdentifier type exposes the following members.

Constructors

  Name Description
Public method ItemIdentifier(String) Creates an item identifier for an item.
Public method ItemIdentifier(Change) Creates an item identifier from a change object.
Public method ItemIdentifier(String, VersionSpec) Creates an item identifier for an item and specified version.
Public method ItemIdentifier(String, VersionSpec, Int32) Creates an item identifier with the item and specified version

Top

Properties

  Name Description
Public property ChangeType Gets the change type of the item.
Public property DeletionId Gets the deletion ID of the item identifier, this is intentionally internal as we want to eventually obsolete DeletionId, use IsDeleted instead
Public property IsDeleted Checks whether the item is deleted at the VersionSpec version.
Public property Item Gets or sets the item that is associated with this ItemIdentifier.
Public property Version Gets or sets the version that is associated with this ItemIdentifier.

Top

Methods

  Name Description
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method Equals(ItemIdentifier) Compares this item identifier to another.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Creates a user-readable string that describes the properties of this ItemIdentifier. (Overrides Object.ToString().)

Top

Remarks

Includes item properties such as a VersionSpec, deletion ID, and change type.

These properties are used for branch object calls such as QueryBranchObjects, TrackMerges, and DeleteBranchObject.

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