Share via


VersionControlServer.TryGetTeamProjectForServerPath 方法

获取指定的服务器路径的团队项目。

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

语法

声明
Public Function TryGetTeamProjectForServerPath ( _
    serverPath As String _
) As TeamProject
public TeamProject TryGetTeamProjectForServerPath(
    string serverPath
)

参数

  • serverPath
    类型:System.String
    获取团队项目的服务器路径。

返回值

类型:Microsoft.TeamFoundation.VersionControl.Client.TeamProject
使用指定的路径的团队项目。否则为 Null。

.NET Framework 安全性

请参见

参考

VersionControlServer 类

Microsoft.TeamFoundation.VersionControl.Client 命名空间