none
when DTE.SourceControl.IsItemCheckedOut() return false RRS feed

  • Question

  • Hello,

    Now I am using DTE.SourceControl.IsItemCheckedOut() to identify whether my items are checked out or not.

    My questions are:

    1) If someone else checked out one item, this method returns true or not?

    2) I checked out many items, then undo all the changes, when these items' checkedout status change to false? Is this process in sync or in async?

    Could anyone have any ideas about the questions? Thanks in advance.

    Thanks & Regards,

    Bryan

    Wednesday, October 19, 2016 3:34 AM

Answers

  • Hi Bryan,

    >>1) If someone else checked out one item, this method returns true or not?

    You also can check SourceControl.IsItemCheckedOut Method (String) in MSDN.

    A Boolean value indicating true if the specified file is checked out; otherwise, false.

    >>2) I checked out many items, then undo all the changes, when these items' checkedout status change to false? Is this process in sync or in async?

    If there is no specified file checked, status will change to false.

    Per my understanding, the process is sync.

    Best regards,

    Kristin


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Bryan_Wang123 Thursday, October 20, 2016 9:51 AM
    Wednesday, October 19, 2016 6:33 AM

All replies

  • Hi Bryan,

    >>1) If someone else checked out one item, this method returns true or not?

    You also can check SourceControl.IsItemCheckedOut Method (String) in MSDN.

    A Boolean value indicating true if the specified file is checked out; otherwise, false.

    >>2) I checked out many items, then undo all the changes, when these items' checkedout status change to false? Is this process in sync or in async?

    If there is no specified file checked, status will change to false.

    Per my understanding, the process is sync.

    Best regards,

    Kristin


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Bryan_Wang123 Thursday, October 20, 2016 9:51 AM
    Wednesday, October 19, 2016 6:33 AM
  • Hi Kristin,

    Thanks very much!

    Regards,

    Bryan

    Thursday, October 20, 2016 9:52 AM