Workspace.GetLocalItemForServerItem Method (String)
Gets the corresponding local item for the specified server item.
Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
'Declaration
Public Function GetLocalItemForServerItem ( _
serverItem As String _
) As String
public string GetLocalItemForServerItem(
string serverItem
)
public:
String^ GetLocalItemForServerItem(
String^ serverItem
)
member GetLocalItemForServerItem :
serverItem:string -> string
public function GetLocalItemForServerItem(
serverItem : String
) : String
Parameters
- serverItem
Type: System.String
The server item.
Return Value
Type: System.String
The corresponding local item for the specified server item.
Exceptions
Exception | Condition |
---|---|
ItemNotMappedException | Thrown if the server item is not mapped in the workspace. |
ItemCloakedException | Thrown if the server item is cloaked in the workspace. |
.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.