ItemIdentifier Class

Represents a unique identifier for an item.


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

public sealed class ItemIdentifier

The ItemIdentifier type exposes the following members.

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

Public propertyChangeTypeGets the change type of the item.
Public propertyDeletionIdGets the deletion ID of the item identifier, this is intentionally internal as we want to eventually obsolete DeletionId, use IsDeleted instead
Public propertyIsDeletedChecks whether the item is deleted at the VersionSpec version.
Public propertyItemGets or sets the item that is associated with this ItemIdentifier.
Public propertyVersionGets or sets the version that is associated with this ItemIdentifier.

Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodEquals(ItemIdentifier)Compares this item identifier to another.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringCreates a user-readable string that describes the properties of this ItemIdentifier. (Overrides Object.ToString().)

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.

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