VersionControlServer.ServerItemExists Method (String, ItemType)
Returns true if the specified file or folder is located in the Team Foundation Server database in a non-deleted state.
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
- Type: System.String
The file or folder that you want to get. This may be a Team Foundation Server path ($/CmdLine/parse.cs) or a local path (C:\Code\CmdLine\parse.cs), in the latter case, the local path is mapped to a server path by way of a workspace. Wildcards should not be passed here: they will cause an exception to occur.
- Type: Microsoft.TeamFoundation.VersionControl.Client.ItemType
The ItemType.Folder that you want to get for a folder, the ItemType.File that you want to getfor a file, or the ItemType.Any method which returns true if either is found.
Return ValueType: System.Boolean
Returns true if the item is found in Team Foundation Server in a non-deleted state.
- 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.