共用方式為


VersionControlServer.TryGetTeamProjectForServerPath 方法

取得指定的伺服器路徑的 Team 專案。

命名空間:  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
    Team 專案的伺服器路徑取得。

傳回值

型別:Microsoft.TeamFoundation.VersionControl.Client.TeamProject
使用指定的路徑建立 Team 專案。否則,為 Null。

.NET Framework 安全性

請參閱

參考

VersionControlServer 類別

Microsoft.TeamFoundation.VersionControl.Client 命名空間