Workspace.GetServerItemForLocalItem Method

Gets the server item path for a local item path.

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

Syntax

'Declaration
Public Function GetServerItemForLocalItem ( _
    localItem As String _
) As String
'Usage
Dim instance As Workspace 
Dim localItem As String 
Dim returnValue As String 

returnValue = instance.GetServerItemForLocalItem(localItem)
public string GetServerItemForLocalItem(
    string localItem
)
public:
String^ GetServerItemForLocalItem(
    String^ localItem
)
public function GetServerItemForLocalItem(
    localItem : String
) : String

Parameters

Return Value

Type: System.String
The corresponding server item.

Exceptions

Exception Condition
[ItemNotMappedException]

Thrown when the local item is not mapped in the local cache.

[ItemCloakedException]

Thrown when the server has no mapping for the local item or if the item is cloaked.

.NET Framework Security

See Also

Reference

Workspace Class

Workspace Members

Microsoft.TeamFoundation.VersionControl.Client Namespace