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
localItem
Type: System.StringThe local item.
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
- 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.