Item Class
Represents a committed version of a file or folder in the version control server.
Inheritance Hierarchy
System.Object
Microsoft.TeamFoundation.VersionControl.Client.Item
Microsoft.TeamFoundation.VersionControl.Client.WorkspaceItem
Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
'Declaration
Public Class Item
public class Item
public ref class Item
type Item = class end
public class Item
The Item type exposes the following members.
Properties
Name | Description | |
---|---|---|
ArtifactUri | Gets the artifact uniform resource identifier (URI). | |
ArtifactUriLatestItemVersion | Gets the latest version artifact URI. | |
Attributes | Gets the attributes associated with the item. | |
ChangesetId | Gets the changeset ID of this item. | |
CheckinDate | Gets the check-in date of this item. | |
Comparer | Gets a Comparer object for Version Control server paths. | |
ContentLength | Gets the length of the content in this item. | |
DeletionId | Gets the deletion ID of this item. | |
Encoding | Gets the encoding of this item. | |
HashValue | Gets the hash value of this item. | |
IsBranch | Flag that describes whether this item is a branch. | |
IsContentDestroyed | Gets a flag that describes whether the content of the item was destroyed. | |
ItemId | Gets the ID of this item. | |
ItemType | Gets the type of this item. | |
Properties | Obsolete. Gets a read-only collection of properties that is associated with the item. | |
PropertyValues | Gets the property values associated with the item. | |
ServerItem | Gets the path of the associated item on the server. | |
VersionControlServer | Gets the version control repository that contains this item. |
Top
Methods
Name | Description | |
---|---|---|
DownloadFile() | Downloads the content for this version of the item. | |
DownloadFile(String) | Downloads the content for this version of the item. | |
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.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Creates a user-readable string that displays relevant properties of this item. (Overrides Object.ToString().) |
Top
Fields
Name | Description | |
---|---|---|
m_changesetId | Represents the changeset identifier of the item. | |
m_checkinDate | Represents the checkin date it the item. | |
m_contentLength | Represents the content length of the item. | |
m_deletionId | Represents the deletion identifier of the item. | |
m_downloadUrl | Represents the download URL associated with the item. | |
m_encoding | Represents the encoding of the item. | |
m_isBranch | Represents whether the item is a branch. | |
m_itemId | Represents the identifier of the item. | |
m_itemType | Represents the type of the item. | |
m_serverItem | Represents the server associated with the item. | |
m_timeZone | Represents the time zone of the item. | |
m_timeZoneOffset | Represents the time zone offset of the item. |
Top
Remarks
The item path is always a server path. It is returned by GetItems(), GetItem(), and several other calls.
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.