VMware {code} Community
sahmed24
Contributor
Contributor
Jump to solution

how can i made my code to wait for the deletion of vApp

Hi

i am having this issue, when i delete vApp from my C# code, the program flow just moves ahead. i want it to wait until the deletion process is finished. how can i do that.

//Rizwan

0 Kudos
1 Solution

Accepted Solutions
lamw
Community Manager
Community Manager
Jump to solution

When you call Destroy_Task, you'll notice the return value is a task object, this allows you monitor the progress of the operation and you can block before proceed in your code. Pretty much any of the methods with *_Task() will return back a task object.

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Twitter: @lamw

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Community

If you find this information useful, please award points for "correct" or "helpful".

View solution in original post

0 Kudos
1 Reply
lamw
Community Manager
Community Manager
Jump to solution

When you call Destroy_Task, you'll notice the return value is a task object, this allows you monitor the progress of the operation and you can block before proceed in your code. Pretty much any of the methods with *_Task() will return back a task object.

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Twitter: @lamw

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Community

If you find this information useful, please award points for "correct" or "helpful".

0 Kudos