This documentation is archived and is not being maintained.

Workspace::GetWorkingFolderForServerItem Method (String, array<WorkingFolder>)

Gets a WorkingFolder instance that describes how the specified server item is mapped in the workspace.

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

public:
static WorkingFolder^ GetWorkingFolderForServerItem(
	String^ serverItem, 
	array<WorkingFolder^>^ folders
)

Parameters

serverItem
Type: System::String

A server path that is mapped by the specified WorkingFolder objects.

folders
Type: array<Microsoft.TeamFoundation.VersionControl.Client::WorkingFolder>

The WorkingFolder objects.

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client::WorkingFolder
A WorkingFolder instance that describes how the server path is mapped by the specified WorkingFolder objects.

ExceptionCondition
ItemNotMappedException

Thrown if the server item is not mapped by the specified WorkingFolder objects.

First shipped in TFS 2005

Show: