Share via


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

Gets the corresponding server item for a local item.

Does not throw ItemNotMappedException or ItemCloakedException.

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

Syntax

'Declaration
Public Shared Function TryGetServerItemForLocalItem ( _
    localItem As String, _
    folders As WorkingFolder(), _
    detectImplicitCloak As Boolean _
) As String
public static string TryGetServerItemForLocalItem(
    string localItem,
    WorkingFolder[] folders,
    bool detectImplicitCloak
)
public:
static String^ TryGetServerItemForLocalItem(
    String^ localItem, 
    array<WorkingFolder^>^ folders, 
    bool detectImplicitCloak
)
static member TryGetServerItemForLocalItem : 
        localItem:string * 
        folders:WorkingFolder[] * 
        detectImplicitCloak:bool -> string
public static function TryGetServerItemForLocalItem(
    localItem : String, 
    folders : WorkingFolder[], 
    detectImplicitCloak : boolean
) : String

Parameters

  • detectImplicitCloak
    Type: System.Boolean

    If true, detect and return null if the local item is implicitly cloaked in the workspace

Return Value

Type: System.String
The corresponding server item for the local item

Remarks

First shipped in TFS 2012

.NET Framework Security

See Also

Reference

Workspace Class

TryGetServerItemForLocalItem Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace