다음을 통해 공유


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
Public property ArtifactUri Gets the artifact uniform resource identifier (URI).
Public property ArtifactUriLatestItemVersion Gets the latest version artifact URI.
Public property ChangesetId Gets the changeset ID of this item.
Public property CheckinDate Gets the check-in date of this item.
Public propertyStatic member Comparer Gets a Comparer object for Version Control server paths.
Public property ContentLength Gets the length of the content in this item.
Public property DeletionId Gets the deletion ID of this item.
Public property Encoding Gets the encoding of this item.
Public property HashValue Gets the hash value of this item.
Public property IsBranch Flag that describes whether this item is a branch.
Public property IsContentDestroyed Gets a flag that describes whether the content of the item was destroyed.
Public property ItemId Gets the ID of this item.
Public property ItemType Gets the type of this item.
Public property Properties Gets a read-only collection of properties that is associated with the item.
Public property ServerItem Gets the path of the associated item on the server.
Public property VersionControlServer Gets the version control repository that contains this item.

Top

Methods

  Name Description
Public method DownloadFile() Downloads the content for this version of the item.
Public method DownloadFile(String) Downloads the content for this version of the item.
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 GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
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 ToString Creates a user-readable string that displays relevant properties of this item. (Overrides Object.ToString().)

Top

Fields

  Name Description
Protected field m_changesetId
Protected field m_checkinDate
Protected field m_contentLength
Protected field m_deletionId
Protected field m_downloadUrl
Protected field m_encoding
Protected field m_isBranch
Protected field m_itemId
Protected field m_itemType
Protected field m_serverItem
Protected field m_timeZone
Protected field 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.

See Also

Reference

Microsoft.TeamFoundation.VersionControl.Client Namespace