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 | |
---|---|---|
ItemIdentifier(String) | Creates an item identifier for an item. | |
ItemIdentifier(Change) | Creates an item identifier from a change object. | |
ItemIdentifier(String, VersionSpec) | Creates an item identifier for an item and specified version. | |
ItemIdentifier(String, VersionSpec, Int32) | Creates an item identifier with the item and specified version |
Top
Properties
Name | Description | |
---|---|---|
ChangeType | Gets the change type of the item. | |
DeletionId | Gets the deletion ID of the item identifier, this is intentionally internal as we want to eventually obsolete DeletionId, use IsDeleted instead | |
IsDeleted | Checks whether the item is deleted at the VersionSpec version. | |
Item | Gets or sets the item that is associated with this ItemIdentifier. | |
Version | Gets or sets the version that is associated with this ItemIdentifier. |
Top
Methods
Name | Description | |
---|---|---|
Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Equals(ItemIdentifier) | Compares this item identifier to another. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
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.