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
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
serverItem
Type: System.StringServer item.
Return Value
Type: Microsoft.TeamFoundation.VersionControl.Server.WorkingFolder
WorkingFolder object for the server item.
.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.