VersionControlServer.ServerItemExists Method (String, ItemType)
Checks to see if the item of the specified path and type exists in the repository.
Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
'Declaration
Public Function ServerItemExists ( _
path As String, _
itemType As ItemType _
) As Boolean
public bool ServerItemExists(
string path,
ItemType itemType
)
public:
bool ServerItemExists(
String^ path,
ItemType itemType
)
member ServerItemExists :
path:string *
itemType:ItemType -> bool
public function ServerItemExists(
path : String,
itemType : ItemType
) : boolean
Parameters
path
Type: System.StringThe path of the item to check for, may be server or local.
itemType
Type: Microsoft.TeamFoundation.VersionControl.Client.ItemTypeThe ItemType of the item.
Return Value
Type: System.Boolean
True if the specified item is in the repository. False otherwise.
.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.