Item Class

Represents an item as returned by the QueryItems command.

Inheritance Hierarchy


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


<RequiredClientServiceAttribute("VersionControlServer")> _
<ClassNotSealedAttribute> _
<CallOnDeserializationAttribute("AfterDeserialize")> _
Public Class Item _
    Implements ICacheable
public class Item : ICacheable
public ref class Item : ICacheable
type Item =  
        interface ICacheable 
public class Item implements ICacheable

The Item type exposes the following members.


Name Description
Public method Item



Name Description
Public property Attributes Attributes
Public property ChangesetId The version number of this item as a changeset number.
Public property CheckinDate Last modification timestamp of the item.
Public property DeletionId Since more than one deleted item may exist with the same ServerItem name, this is used to uniquely identify deleted items. ServerItem + DeletionId is guaranteed to be unique for all items.
Public property DownloadUrl Returns the download URL fragment of the file to download.
Public property Encoding
Public property FileLength Length of item, if applicable.
Public property HashValue MD5 of item, if applicable.
Public property IsBranch Where the item is defined as a branch object in the system.
Public property IsContentDestroyed
Public property IsFolder
Public property ItemId The item's ID. Used to retrieve file contents.
Public property ItemType This tells the client the type of item being referenced.
Public property Properties Obsolete. Properties
Public property PropertyValues Properties
Public property SequenceId
Public property ServerItem Repository path of this item (e.g. $/Sample/MyFile.cs).
Public property TimeZone The timezone name in effect on the checkin date.
Public property TimeZoneOffset The timezone offset in effect on the checkin date.



Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
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 GetArtifactSpec
Public method GetCachedSize Average size in bytes of the item.
Public method GetDownloadUrlCount
Public method GetFileId
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetHashValue
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 SetDownloadUrl
Public method ToString Returns a string that represents the current object. (Inherited from Object.)


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


Microsoft.TeamFoundation.VersionControl.Server Namespace