Workspace.GetWorkingFolderForLocalItem Method

Gets a WorkingFolder instance describing how the specified local item is mapped in the workspace.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)

Syntax

'Declaração
Public Function GetWorkingFolderForLocalItem ( _
    localItem As String _
) As WorkingFolder
public WorkingFolder GetWorkingFolderForLocalItem(
    string localItem
)
public:
WorkingFolder^ GetWorkingFolderForLocalItem(
    String^ localItem
)
member GetWorkingFolderForLocalItem : 
        localItem:string -> WorkingFolder 
public function GetWorkingFolderForLocalItem(
    localItem : String
) : WorkingFolder

Parameters

  • localItem
    Type: System.String
    The local path for which to construct a WorkingFolder.

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client.WorkingFolder
A WorkingFolder describing how the local path is mapped in the workspace.

Exceptions

Exception Condition
ItemNotMappedException

Thrown if the local item is not mapped in the workspace.

.NET Framework Security

See Also

Reference

Workspace Class

Microsoft.TeamFoundation.VersionControl.Client Namespace