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 propertyAttributesGets the attributes associated with the item.
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 propertyProperties Obsolete. Gets a read-only collection of properties that is associated with the item.
Public propertyPropertyValuesGets the property values 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 methodDownloadFileDownloads 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 the default hash function. (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.)

Protected fieldm_changesetIdRepresents the changeset identifier of the item.
Protected fieldm_checkinDateRepresents the checkin date it the item.
Protected fieldm_contentLengthRepresents the content length of the item.
Protected fieldm_deletionIdRepresents the deletion identifier of the item.
Protected fieldm_downloadUrlRepresents the download URL associated with the item.
Protected fieldm_encodingRepresents the encoding of the item.
Protected fieldm_isBranchRepresents whether the item is a branch.
Protected fieldm_itemIdRepresents the identifier of the item.
Protected fieldm_itemTypeRepresents the type of the item.
Protected fieldm_serverItemRepresents the server associated with the item.
Protected fieldm_timeZoneRepresents the time zone of the item.
Protected fieldm_timeZoneOffsetRepresents the time zone offset of the item.

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.