This documentation is archived and is not being maintained.
Workspace::TryGetWorkingFolderForServerItem Method (String, array<WorkingFolder>, Boolean)
Visual Studio 2013
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, array<WorkingFolder^>^ folders, bool matchPattern )
Parameters
- serverItem
- Type: System::String
A server path that is mapped by the provided WorkingFolder objects.
- folders
- Type: array<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::WorkingFolderA WorkingFolder instance that describes how the specified WorkingFolder objects map the server path. Null if the server path is not mapped.
- 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.
Show: