Share via


VersionControlServer.GetItems 方法 (array<ItemSpec , VersionSpec, DeletedState, ItemType, Boolean)

获取数组与指定的路径和版本在储存库的 Item 对象。

命名空间:  Microsoft.TeamFoundation.VersionControl.Client
程序集:  Microsoft.TeamFoundation.VersionControl.Client(在 Microsoft.TeamFoundation.VersionControl.Client.dll 中)

语法

声明
Public Function GetItems ( _
    itemSpecs As ItemSpec(), _
    version As VersionSpec, _
    deletedState As DeletedState, _
    itemType As ItemType, _
    includeDownloadInfo As Boolean _
) As ItemSet()
public ItemSet[] GetItems(
    ItemSpec[] itemSpecs,
    VersionSpec version,
    DeletedState deletedState,
    ItemType itemType,
    bool includeDownloadInfo
)

参数

  • includeDownloadInfo
    类型:System.Boolean
    true 获取必需的信息下载文件。指定错误节省带宽,如果不需要。

返回值

类型:array<Microsoft.TeamFoundation.VersionControl.Client.ItemSet[]
与路径的数组项目。

备注

true 的那些设置的 includeDownloadInfo,如果要下载的文件使用返回的对象。调用会更快并且少带宽,当 includeDownloadInfo 中的错误 (未指定它) 的超加载的默认值。

.NET Framework 安全性

请参见

参考

VersionControlServer 类

GetItems 重载

Microsoft.TeamFoundation.VersionControl.Client 命名空间