Repository4.QueryWorkspaces 方法
搜索具有指定的所有者和计算机的工作区。
命名空间: Microsoft.TeamFoundation.VersionControl.Server
程序集: Microsoft.TeamFoundation.VersionControl.Server(在 Microsoft.TeamFoundation.VersionControl.Server.dll 中)
语法
声明
<WebMethodAttribute> _
Public Function QueryWorkspaces ( _
ownerName As String, _
computer As String, _
permissionsFilter As Integer _
) As List(Of Workspace)
[WebMethodAttribute]
public List<Workspace> QueryWorkspaces(
string ownerName,
string computer,
int permissionsFilter
)
参数
- ownerName
类型:System.String
其中包括域或空字符串,以查找所有的用户名称。
- computer
类型:System.String
- permissionsFilter
类型:System.Int32
筛选器将仅对其 AuthenticatedUser 具有指定的权限的工作区的结果集。
返回值
类型:System.Collections.Generic.List<Workspace>
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。