Share via


VersionControlServer.GetPendingChange 方法 (Int32, Boolean)

注意:此 API 现在已过时。

从储存库获取 PendingChange 对象,具有指定的 ID 的 .并获取信息下载文件。

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

语法

声明
<ObsoleteAttribute("Method obsolete since TFS 2010. Please use VersionControlServer.QueryPendingSets, VersionControlServer.QueryShelvedChanges or Workspace.GetPendingChanges instead.")> _
Public Function GetPendingChange ( _
    pendingChangeId As Integer, _
    includeDownloadInfo As Boolean _
) As PendingChange
[ObsoleteAttribute("Method obsolete since TFS 2010. Please use VersionControlServer.QueryPendingSets, VersionControlServer.QueryShelvedChanges or Workspace.GetPendingChanges instead.")]
public PendingChange GetPendingChange(
    int pendingChangeId,
    bool includeDownloadInfo
)

参数

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

返回值

类型:Microsoft.TeamFoundation.VersionControl.Client.PendingChange
与指定的 ID. 的 PendingChange否则为 null。

备注

true 的那些设置的 includeDownloadInfo 使用返回的信息,因此,如果您将下载文件。此方法调用会更快并且少带宽,当 includeDownloadInfo 为 false 时 (不指定它) 的超加载的默认值。

.NET Framework 安全性

请参见

参考

VersionControlServer 类

GetPendingChange 重载

Microsoft.TeamFoundation.VersionControl.Client 命名空间