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)
Syntax
'Declaration
Public Shared Function GetWorkingFolderForServerItem ( _
serverItem As String, _
folders As WorkingFolder() _
) As WorkingFolder
public static WorkingFolder GetWorkingFolderForServerItem(
string serverItem,
WorkingFolder[] folders
)
public:
static WorkingFolder^ GetWorkingFolderForServerItem(
String^ serverItem,
array<WorkingFolder^>^ folders
)
static member GetWorkingFolderForServerItem :
serverItem:string *
folders:WorkingFolder[] -> WorkingFolder
public static function GetWorkingFolderForServerItem(
serverItem : String,
folders : WorkingFolder[]
) : WorkingFolder
Parameters
serverItem
Type: System.StringA 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.
Exceptions
Exception | Condition |
---|---|
ItemNotMappedException | Thrown if the server item is not mapped by the specified WorkingFolder objects. |
Remarks
First shipped in TFS 2005
.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.