Workspace.GetTeamProjectForLocalPath Method
Gets the TeamProject instance that contains the specified path.
Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
'宣告
Public Function GetTeamProjectForLocalPath ( _
localPath As String _
) As TeamProject
public TeamProject GetTeamProjectForLocalPath(
string localPath
)
public:
TeamProject^ GetTeamProjectForLocalPath(
String^ localPath
)
member GetTeamProjectForLocalPath :
localPath:string -> TeamProject
public function GetTeamProjectForLocalPath(
localPath : String
) : TeamProject
Parameters
- localPath
Type: System.String
The local path.
Return Value
Type: Microsoft.TeamFoundation.VersionControl.Client.TeamProject
The TeamProject for the specified local path, or throws a VersionControlException.
Exceptions
Exception | Condition |
---|---|
VersionControlException |
Remarks
The local path must be in this workspace.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.