Repository4.UndoPendingChanges 方法
撤消挂起的更改。
如果 serverItem 规范不匹配的,通过对象为其返回。
此方法返回已取消的数组挂起的更改。 对于每个文件,客户端"在 UndonePendingChange 对象应调用 DownloadFile() 并指定返回的版本检索文件的未修改的版本。
命名空间: Microsoft.TeamFoundation.VersionControl.Server
程序集: Microsoft.TeamFoundation.VersionControl.Server(在 Microsoft.TeamFoundation.VersionControl.Server.dll 中)
语法
声明
<WebMethodAttribute> _
Public Function UndoPendingChanges ( _
workspaceName As String, _
ownerName As String, _
items As ItemSpec(), _
itemPropertyFilters As String(), _
itemAttributeFilters As String(), _
<OutAttribute> ByRef failures As List(Of Failure), _
<OutAttribute> ByRef changePendedFlags As Integer _
) As StreamingCollection(Of GetOperation)
[WebMethodAttribute]
public StreamingCollection<GetOperation> UndoPendingChanges(
string workspaceName,
string ownerName,
ItemSpec[] items,
string[] itemPropertyFilters,
string[] itemAttributeFilters,
out List<Failure> failures,
out int changePendedFlags
)
参数
- workspaceName
类型:System.String
还原的工作区域等待从更改为。
- ownerName
类型:System.String
工作区域的所有者 (包括字段)。
- items
类型:array<Microsoft.TeamFoundation.VersionControl.Server.ItemSpec[]
还原的某些项目。
- itemPropertyFilters
类型:array<System.String[]
- itemAttributeFilters
类型:array<System.String[]
列出属性返回与 get 操作。
- failures
类型:System.Collections.Generic.List<Failure>%
无法撤消的项目失败的对象。
- changePendedFlags
类型:System.Int32%
返回值
类型:Microsoft.TeamFoundation.Framework.Server.StreamingCollection<GetOperation>
必须应用于客户端同时结果执行 get 操作。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。