Export (0) Print
Expand All

Item Class

Represents an item as returned by the QueryItems command.

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

public class Item : ICacheable

The Item type exposes the following members.

Public methodItem

Public propertyAttributesAttributes
Public propertyChangesetIdThe version number of this item as a changeset number.
Public propertyCheckinDateLast modification timestamp of the item.
Public propertyDeletionIdSince 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 propertyDownloadUrlReturns the download URL fragment of the file to download.
Public propertyEncoding
Public propertyFileLengthLength of item, if applicable.
Public propertyHashValueMD5 of item, if applicable.
Public propertyIsBranchWhere the item is defined as a branch object in the system.
Public propertyIsContentDestroyed
Public propertyIsFolder
Public propertyItemIdThe item's ID. Used to retrieve file contents.
Public propertyItemTypeThis tells the client the type of item being referenced.
Public propertyProperties Obsolete. Properties
Public propertyPropertyValuesProperties
Public propertySequenceId
Public propertyServerItemRepository path of this item (e.g. $/Sample/MyFile.cs).
Public propertyTimeZoneThe timezone name in effect on the checkin date.
Public propertyTimeZoneOffsetThe timezone offset in effect on the checkin date.

Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetArtifactSpec
Public methodGetCachedSizeAverage size in bytes of the item.
Public methodGetDownloadUrlCount
Public methodGetFileId
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetHashValue
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSetDownloadUrl
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2014 Microsoft