Export (0) Print
Expand All

Workspace.TryGetWorkingFolderForServerItem Method (String, WorkingFolder[], Boolean)

Gets a WorkingFolder instance that describes how the specified WorkingFolder objects map the server item.

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

public static WorkingFolder TryGetWorkingFolderForServerItem(
	string serverItem,
	WorkingFolder[] folders,
	bool matchPattern
)

Parameters

serverItem
Type: System.String

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

folders
Type: Microsoft.TeamFoundation.VersionControl.Client.WorkingFolder[]

The WorkingFolder objects.

matchPattern
Type: System.Boolean

If false, WorkingFolder objects that have RecursionType.OneLevel are interpreted as having RecursionType.Full.

Return Value

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

First shipped in Visual Studio Team Foundation Server 2008

Show:
© 2014 Microsoft