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

'Déclaration
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.

Top

Properties

  Name Description
Public property ChangeType Gets the change type of the item.
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.
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 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 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