How can we know if the delete process is finished ?

  • Thread starter Thread starter Pujo Aji
  • Start date Start date
P

Pujo Aji

Hello

I would like to know when my deleting process finished.For example:

public static void Main(){
myDeleteMethod();
//NextMove...
}

public static void myDeleteMethod(){
//delete something
}

Question:
How can I assure that when it goes to the NextMove the deleting process
are already finished (for example it is very big file).

Sincerely Yours,
Pujo
 
I believe the method won't return until the deleting process is over.
Just to be sure, you can add
System.Diagnostics.Trace.Assert(!File.Exists(...))
at the end of myDeleteMethod()
 
Thanks Uri....

I believe the method won't return until the deleting process is over.
Just to be sure, you can add
System.Diagnostics.Trace.Assert(!File.Exists(...))
at the end of myDeleteMethod()
 
Back
Top