Workspace.TryGetWorkingFolderForServerItem Method (String, array<WorkingFolder , Boolean)

Gets a WorkingFolder instance describing how the server item is mapped by the specified WorkingFolder objects.

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

Syntax

'Declaração
Public Shared Function TryGetWorkingFolderForServerItem ( _
    serverItem As String, _
    folders As WorkingFolder(), _
    matchPattern As Boolean _
) As WorkingFolder
public static WorkingFolder TryGetWorkingFolderForServerItem(
    string serverItem,
    WorkingFolder[] folders,
    bool matchPattern
)
public:
static WorkingFolder^ TryGetWorkingFolderForServerItem(
    String^ serverItem, 
    array<WorkingFolder^>^ folders, 
    bool matchPattern
)
static member TryGetWorkingFolderForServerItem : 
        serverItem:string * 
        folders:WorkingFolder[] * 
        matchPattern:bool -> WorkingFolder 
public static function TryGetWorkingFolderForServerItem(
    serverItem : String, 
    folders : WorkingFolder[], 
    matchPattern : boolean
) : WorkingFolder

Parameters

  • serverItem
    Type: System.String
    A server path mapped by the provided WorkingFolder objects.
  • matchPattern
    Type: System.Boolean
    If false, WorkingFolder objects with RecursionType.OneLevel are interpreted as having RecursionType.Full.

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client.WorkingFolder
A WorkingFolder describing how the server path is mapped by the specified WorkingFolder objects. Null if the server path is not mapped.

.NET Framework Security

See Also

Reference

Workspace Class

TryGetWorkingFolderForServerItem Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace