Item Class
Represents an item as returned by the QueryItems command.
Inheritance Hierarchy
System.Object
Microsoft.TeamFoundation.VersionControl.Server.Item
Microsoft.TeamFoundation.VersionControl.Server.WorkspaceItem
Namespace: Microsoft.TeamFoundation.VersionControl.Server
Assembly: Microsoft.TeamFoundation.VersionControl.Server (in Microsoft.TeamFoundation.VersionControl.Server.dll)
Syntax
'Declaration
<ClassNotSealedAttribute> _
<CallOnDeserializationAttribute("AfterDeserialize")> _
<RequiredClientServiceAttribute("VersionControlServer")> _
Public Class Item _
Implements ICacheable
[ClassNotSealedAttribute]
[CallOnDeserializationAttribute("AfterDeserialize")]
[RequiredClientServiceAttribute("VersionControlServer")]
public class Item : ICacheable
[ClassNotSealedAttribute]
[CallOnDeserializationAttribute(L"AfterDeserialize")]
[RequiredClientServiceAttribute(L"VersionControlServer")]
public ref class Item : ICacheable
[<ClassNotSealedAttribute>]
[<CallOnDeserializationAttribute("AfterDeserialize")>]
[<RequiredClientServiceAttribute("VersionControlServer")>]
type Item =
class
interface ICacheable
end
public class Item implements ICacheable
The Item type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Item |
Top
Properties
Name | Description | |
---|---|---|
Attributes | Attributes | |
ChangesetId | The version number of this item as a changeset number. | |
CheckinDate | Last modification timestamp of the item. | |
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. | |
DownloadUrl | Returns the download URL fragment of the file to download. | |
Encoding | ||
FileLength | Length of item, if applicable | |
HashValue | MD5 of item, if applicable | |
IsBranch | Where the item is defined as a branch object in the system. | |
IsContentDestroyed | ||
IsFolder | ||
ItemId | The item's ID. Used to retrieve file contents | |
ItemType | This tells the client the type of item being referenced. | |
Properties | Obsolete. Properties | |
PropertyValues | Properties | |
SequenceId | ||
ServerItem | Repository path of this item (e.g. $/Sample/MyFile.cs) | |
TimeZone | The timezone name in effect on the checkin date | |
TimeZoneOffset | The timezone offset in effect on the checkin date |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetArtifactSpec | ||
GetCachedSize | Average size in bytes of the item. | |
GetDownloadUrlCount | ||
GetFileId | ||
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetHashValue | ||
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SetDownloadUrl | ||
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
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.