Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the corresponding server item for a local item.
Does not throw ItemNotMappedException or ItemCloakedException.
Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
'Declaration
Public Function TryGetServerItemForLocalItem ( _
localItem As String, _
detectImplicitCloak As Boolean _
) As String
public string TryGetServerItemForLocalItem(
string localItem,
bool detectImplicitCloak
)
public:
String^ TryGetServerItemForLocalItem(
String^ localItem,
bool detectImplicitCloak
)
member TryGetServerItemForLocalItem :
localItem:string *
detectImplicitCloak:bool -> string
public function TryGetServerItemForLocalItem(
localItem : String,
detectImplicitCloak : boolean
) : String
Parameters
localItem
Type: System.StringThe local item to translate
detectImplicitCloak
Type: System.BooleanIf true, detect and return null if the local item is implicitly cloaked in the workspace
Return Value
Type: System.String
The corresponding server item for the local item
Remarks
First shipped in TFS 2012
.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.