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
Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
声明
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. | |
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 | Gets a read-only collection of properties that is 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 a hash function for a particular type. (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 | ||
m_checkinDate | ||
m_contentLength | ||
m_deletionId | ||
m_downloadUrl | ||
m_encoding | ||
m_isBranch | ||
m_itemId | ||
m_itemType | ||
m_serverItem | ||
m_timeZone | ||
m_timeZoneOffset |
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.