This documentation is archived and is not being maintained.

Item Class

Represents a committed version of a file or folder in the version control server.


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

public class Item

The Item type exposes the following members.

Public propertyArtifactUriGets the artifact uniform resource identifier (URI).
Public propertyArtifactUriLatestItemVersionGets the latest version artifact URI.
Public propertyChangesetIdGets the changeset ID of this item.
Public propertyCheckinDateGets the check-in date of this item.
Public propertyStatic memberComparerGets a Comparer object for Version Control server paths.
Public propertyContentLengthGets the length of the content in this item.
Public propertyDeletionIdGets the deletion ID of this item.
Public propertyEncodingGets the encoding of this item.
Public propertyHashValueGets the hash value of this item.
Public propertyIsBranchFlag that describes whether this item is a branch.
Public propertyIsContentDestroyedGets a flag that describes whether the content of the item was destroyed.
Public propertyItemIdGets the ID of this item.
Public propertyItemTypeGets the type of this item.
Public propertyPropertiesGets a read-only collection of properties that is associated with the item.
Public propertyServerItemGets the path of the associated item on the server.
Public propertyVersionControlServerGets the version control repository that contains this item.

Public methodDownloadFile()Downloads the content for this version of the item.
Public methodDownloadFile(String)Downloads the content for this version of the item.
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringCreates a user-readable string that displays relevant properties of this item. (Overrides Object.ToString().)

The item path is always a server path. It is returned by GetItems(), GetItem(), and several other calls.

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