VersionControlServer.GetItem Method

Include Protected Members
Include Inherited Members

Gets the Item object for the path specified.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

 

Name

Description

Public method

GetItem(String)

This function is passed a string that represents a file or folder in Team Foundation Server, and returns an Item object that represents the current non-deleted version of that item. but download information is not included. Without download information the function call is faster, but if you want to download files, you should use one of the overload methods that will allow you to get download information with the returned items.

Public method

GetItem(Int32, Int32)

Every file and folder on the server that is running Team Foundation Server has a unique ID assigned. This method allows you to get an Item object for an old version of a file or folder, based on the changeset that version was part of. If the item cannot be found, null is returned. Download information is not included in this method. The function call is faster without the download information, but if you want to download files, you should use one of the overload methods that will allow you to get download information with the returned items.

Public method

GetItem(String, VersionSpec)

This function is passed a string that represents a file or folder in Team Foundation Server, and returns an Item object that represents a non-deleted version of that item, but download information is not included. Without download information the function call is faster, but if you want to download files, you should use one of the overload methods that will allow you to get download information with the returned items.

Public method

GetItem(Int32, Int32, Boolean)

Every file and folder on the server that is running Team Foundation Server has a unique ID assigned. This method allows you to get an Item object for an old version of a file or folder, based on the changeset that version was part of. If the item cannot be found, null is returned.

Public method

GetItem(String, VersionSpec, Int32)

This function is passed a string that represents a file or folder in Team Foundation Server, and returns an Item object that represents that item, but download information is not included. Without download information the function call is faster, but if you want to download files, you should use one of the overload methods that will allow you to get download information with the returned items.

Public method

GetItem(String, VersionSpec, Int32, Boolean)

Gets the Item object for the path specified.

Top

See Also

Reference

VersionControlServer Class

VersionControlServer Members

Microsoft.TeamFoundation.VersionControl.Client Namespace