Partager via


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

'Déclaration
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

Return Value

Type: System.String
The corresponding server item for the specified local item.

.NET Framework Security

See Also

Reference

Workspace Class

TryGetServerItemForLocalItem Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace