Freigeben über


Workspace.LocalToServerItem-Methode

Übersetzt ein lokales Element zu einem Serverelement die Arbeitsordner auf Grundlage des Arbeitsbereichs.

Wenn honorCloaks zutrifft, gibt ein verdecktes Element Sie ein ItemCloakedException.

Wenn honorCloaks falsch ist, gibt ein verdecktes Element NULL zurück.

Ein nicht zugeordnete Element gibt Ihnen ein ItemNotMappedException immer.

Namespace:  Microsoft.TeamFoundation.VersionControl.Server
Assembly:  Microsoft.TeamFoundation.VersionControl.Server (in Microsoft.TeamFoundation.VersionControl.Server.dll)

Syntax

'Declaration
Public Function LocalToServerItem ( _
    requestContext As TeamFoundationRequestContext, _
    localItem As String, _
    honorCloaks As Boolean _
) As String
public string LocalToServerItem(
    TeamFoundationRequestContext requestContext,
    string localItem,
    bool honorCloaks
)

Parameter

  • localItem
    Typ: System.String
    Lokales zu übersetzendes Element.
  • honorCloaks
    Typ: System.Boolean
    true, um von ItemCloakedException auf verdeckten Elementen auszulösen.

Rückgabewert

Typ: System.String
Entsprechendes Serverelement für lokales Element.

.NET Framework-Sicherheit

Siehe auch

Referenz

Workspace Klasse

Microsoft.TeamFoundation.VersionControl.Server-Namespace