Workspace.TryGetServerItemForLocalItem Method (String)
Gets the corresponding server item for the specified local item. Does not throw exceptions.
Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
'Declaration
Public Function TryGetServerItemForLocalItem ( _
localItem As String _
) As String
public string TryGetServerItemForLocalItem(
string localItem
)
public:
String^ TryGetServerItemForLocalItem(
String^ localItem
)
member TryGetServerItemForLocalItem :
localItem:string -> string
public function TryGetServerItemForLocalItem(
localItem : String
) : String
Parameters
- localItem
Type: System.String
The path to the local item.
Return Value
Type: System.String
The corresponding server item for the specified local item.
.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.