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.StringThe path to the local item.
Return Value
Type: System.String
The corresponding server item for the specified local item.
Remarks
First shipped in TFS 2005
.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.