How to check a file is checkout or not using TfvcItem
? Trying to use TfvcItem.IsPendingChange
, but not helpful.
I am using DevOps Server 2022 and TFVC as a repo.
TfvcItem file = sourceControl.GetItemAsync(sSrcPath).Result; //retun the file
bool ret = file.IsPendingChange; //always false. I wanted to check the file in TFVS is checked out or not.
New contributor
user24917983 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.