Repository.UpdateWorkspace 方法

修改工作区域属性和工作文件夹映射。

不能更改工作区域所有者。

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

语法

声明
<WebMethodAttribute> _
Public Function UpdateWorkspace ( _
    oldWorkspaceName As String, _
    ownerName As String, _
    newWorkspace As Workspace, _
    supportedFeatures As Integer _
) As Workspace
[WebMethodAttribute]
public Workspace UpdateWorkspace(
    string oldWorkspaceName,
    string ownerName,
    Workspace newWorkspace,
    int supportedFeatures
)

参数

  • oldWorkspaceName
    类型:System.String
    工作区域的名称在更新之前的。
  • ownerName
    类型:System.String
    工作区域的所有者 (包括字段)。
  • supportedFeatures
    类型:System.Int32
    客户端支持的功能,包含 SupportedFeatures 枚举的组合值的整数。

返回值

类型:Microsoft.TeamFoundation.VersionControl.Server.Workspace
新的工作区域属性。将服务器清理了。

.NET Framework 安全性

请参阅

参考

Repository 类

Microsoft.TeamFoundation.VersionControl.Server 命名空间