VersionControlServer.ServerItemExists Method (String, VersionSpec, DeletedState, ItemType)

Returns true if the server item of the specified type is in the database.

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

Syntax

'Declaration
Public Function ServerItemExists ( _
    path As String, _
    version As VersionSpec, _
    deletedState As DeletedState, _
    itemType As ItemType _
) As Boolean
'Usage
Dim instance As VersionControlServer 
Dim path As String 
Dim version As VersionSpec 
Dim deletedState As DeletedState 
Dim itemType As ItemType 
Dim returnValue As Boolean 

returnValue = instance.ServerItemExists(path, _
    version, deletedState, itemType)
public bool ServerItemExists(
    string path,
    VersionSpec version,
    DeletedState deletedState,
    ItemType itemType
)
public:
bool ServerItemExists(
    String^ path, 
    VersionSpec^ version, 
    DeletedState deletedState, 
    ItemType itemType
)
public function ServerItemExists(
    path : String, 
    version : VersionSpec, 
    deletedState : DeletedState, 
    itemType : ItemType
) : boolean

Parameters

  • deletedState
    Type: Microsoft.TeamFoundation.VersionControl.Client.DeletedState

    The DeletedState.NonDeleted from which you want to get a non-deleted item, the DeletedState.Deleted from which you want to search for a deleted item, or the DeletedState.Any from which returns the value true if either is found.

Return Value

Type: System.Boolean
true if the item is in the database, otherwise it is false.

.NET Framework Security

See Also

Reference

VersionControlServer Class

VersionControlServer Members

ServerItemExists Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace