共用方式為


Workspace.TryGetWorkingFolderForServerItem Method (String, array<WorkingFolder )

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)

Syntax

'Declaration
Public Shared Function TryGetWorkingFolderForServerItem ( _
    serverItem As String, _
    folders As WorkingFolder() _
) As WorkingFolder
public static WorkingFolder TryGetWorkingFolderForServerItem(
    string serverItem,
    WorkingFolder[] folders
)
public:
static WorkingFolder^ TryGetWorkingFolderForServerItem(
    String^ serverItem, 
    array<WorkingFolder^>^ folders
)
static member TryGetWorkingFolderForServerItem : 
        serverItem:string * 
        folders:WorkingFolder[] -> WorkingFolder
public static function TryGetWorkingFolderForServerItem(
    serverItem : String, 
    folders : WorkingFolder[]
) : WorkingFolder

Parameters

  • serverItem
    Type: System.String

    A server path that the provided WorkingFolder objects map.

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.

Remarks

First shipped in Visual Studio Team Foundation Server 2005

.NET Framework Security

See Also

Reference

Workspace Class

TryGetWorkingFolderForServerItem Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace