The DiscardSavedState method discards any saved state information for a saved virtual machine.
Syntax
HRESULT DiscardSavedState();
Parameters
This method has no parameters.
Return value
This method can return one of these values.
| Return code | Description |
|---|---|
|
The operation was successful. |
|
The configuration is unknown. |
|
The virtual machine is running. |
|
The virtual machine is not running, but has no saved state. |
|
An unexpected error has occurred. |
Requirements
| Product |
Microsoft Virtual Server 2005 onWindows Server 2003 |
| Download |
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003 |
| Header |
|