Workspace.GetWorkingFolderForServerItem Method (String)
Returns a working folder that has the mapping for the server item.
Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
'Declaration
Public Function GetWorkingFolderForServerItem ( _
serverItem As String _
) As WorkingFolder
'Usage
Dim instance As Workspace
Dim serverItem As String
Dim returnValue As WorkingFolder
returnValue = instance.GetWorkingFolderForServerItem(serverItem)
public WorkingFolder GetWorkingFolderForServerItem(
string serverItem
)
public:
WorkingFolder^ GetWorkingFolderForServerItem(
String^ serverItem
)
public function GetWorkingFolderForServerItem(
serverItem : String
) : WorkingFolder
Parameters
serverItem
Type: System.StringThe server item.
Return Value
Type: Microsoft.TeamFoundation.VersionControl.Client.WorkingFolder
The working folder for the server item.
Exceptions
Exception | Condition |
---|---|
[ItemNotMappedException] | Thrown when the local item is not mapped in the local cache. |
[ItemCloakedException] | Thrown when the path that contains the TeamProject is cloaked. |
Remarks
The working folder object is created in such a way that the server item in the working folder object is the same (that is, the working folder object returned does not necessarily match any working folder object returned by the Folders property).
.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.