Workspace.ServerItemToWorkingFolder Method

Returns a new WorkingFolder object which describes how a given server path is mapped in the workspace.

The paths of the constructed WorkingFolder will match the given item exactly; that is, the WorkingFolder object is not necessarily a duplicate of one of the WorkingFolder objects in the Folders collection.

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

Syntax

'Declaration
Public Function ServerItemToWorkingFolder ( _
    requestContext As TeamFoundationRequestContext, _
    serverItem As String _
) As WorkingFolder
public WorkingFolder ServerItemToWorkingFolder(
    TeamFoundationRequestContext requestContext,
    string serverItem
)
public:
WorkingFolder^ ServerItemToWorkingFolder(
    TeamFoundationRequestContext^ requestContext, 
    String^ serverItem
)
member ServerItemToWorkingFolder : 
        requestContext:TeamFoundationRequestContext * 
        serverItem:string -> WorkingFolder
public function ServerItemToWorkingFolder(
    requestContext : TeamFoundationRequestContext, 
    serverItem : String
) : WorkingFolder

Parameters

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Server.WorkingFolder
WorkingFolder object for the server item.

.NET Framework Security

See Also

Reference

Workspace Class

Microsoft.TeamFoundation.VersionControl.Server Namespace